textbox height different than input height

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

I have 2 objects - one an aspx textbox object and one an html Input object:

<asp:TextBox ID="UserName" CssClass="top-links" style="height:10px"
Columns="12" runat="server"/>

<input name="textfield222" type="text" class="top-links" size="12"
height="10px" />

The heights are different, however. Why would that be?

The TextBox height appears about 2/3 the size of the Input object even
though both have ha height of 10px.

Why does the style work differently?

Thanks,

Tom
 
<input> does not have a height property, so its ignored. you need to use
a style command:

<input name="textfield222" type="text" class="top-links" size="12"
style="height:10px;" />


-- bruce (sqlwork.com)
 
Back
Top