Connecting Tech Pros Worldwide Help | Site Map

line-height on input tag

Member
 
Join Date: Jun 2007
Posts: 101
#1: Jul 25 '08
Hi

Simple question - is line-height applied to input tag. I thought it was until today when I'm trying to iron out a 1px error and I think my input field is causing the problem by ignoring the line-height... Anyone know?

Thanks

Henry
jhardman's Avatar
Moderator
 
Join Date: Jan 2007
Location: logan, utah
Posts: 2,690
#2: Aug 7 '08

re: line-height on input tag


Probably not, but it might be browser-dependent. Try setting the height of the input
Expand|Select|Wrap|Line Numbers
  1. style="height: 24px;"
let me know if this helps.

jared
Member
 
Join Date: Jun 2007
Posts: 111
#3: Aug 7 '08

re: line-height on input tag


Also check the font-size of the input box.
i.e. the size of the font inside of the input box when you type text into that input box. because the input box may be being forced to grow to accomodate the font inside of it.
Reply