textbox height different than input height

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
 
B

bruce barker

<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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top