Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the font size in the input tag

Status
Not open for further replies.

rastaIT34

Technical User
Sep 9, 2009
103
US
I am trying to change the font size in the <input> without affecting the height of the <input> box.


you can see what happens on the first input on this page:


Not sure why this is happening..... is there a way to control the font size without affecting the height of the <input> box?


any help is appreciated....

Artist/Designer
 
By default, input boxes height is determined by the font size. If you want to have different height of the box than the text, then you should play with height, line-height, or padding on top and bottom for the input style. I believe any of those three should give you what you want.

[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Thank you, issue resolved....

Artist/Designer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top