Thursday, August 21, 2008

How to vertical align the text within a text box

Use padding-top tab in CSS style.

For an example
<input type="text" style="width:140px; height:24px; padding-top:4px; font-family:Tahoma; font-size:18px" />

Result

No comments:

Post a Comment