Setting Vertical-Align for a button

Posted by danish on Stack Overflow See other posts from Stack Overflow or by danish
Published on 2009-06-06T15:10:57Z Indexed on 2010/05/28 16:02 UTC
Read the original article Hit count: 284

Filed under:
|
|

I have a in a user control. In that, I have added a HTML table in which there is a button. I need to have the buttons aligned to the bottom of the cell. I tried setting the property in the CSS file the style does not gets applied. What is it that I am doing wrong?

ASCX file:

<link href="CSSFile.css" rel="stylesheet" type="text/css" />
.
.
.
<td>
  <asp:Button ID="btnOK" runat="server" Text="OK" Width="66px" CssClass="ButtonClass"/>
  <asp:Button ID="btnClose" runat="server" Text="Close" Width="66px"/>
</td>

CSS File:

ButtonClass
{
  border: thin groove #000000;
  vertical-align: bottom;
  color: #000000;
  background-color: #99FFCC;
}

The CSS file and the user control reside in the same folder.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about css