html - Vertically center text in text input in Internet Explorer -


i having trouble vertical aligning text in input field in internet explorer.

i have:

input#search {     float:left;     font-size:11px;     height:20px;     margin:0;     padding-left:4px;     width:100px; } 

in firefox , chrome, seems automatically vertical aligned, in internet explorer not.

just set height , line-height input object , works fine (ie 7+).

input { border: 0; font-size: 0.8em; height: 32px; line-height: 32px;} 

gl paulo bueno


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -