Reputation: 3329
I have an input box which is present inside a Div tag.
My issue is when I type some text in this input button, the alignment of the text looks good in IE9. However, when I type text in IE7/IE8 the text gets aligned to the top, not in the center.
How can I fix it?
Upvotes: 0
Views: 430
Reputation: 6656
this is line height issue in different browser so I am using this method
<span>
<input name="" value="" type="text" />
</span>
span{ border:1px solid red; background:gray;}
span input{ border:none; background:none;}
Upvotes: 1