What is the best way to create input that will have the same rendering in Chrome, FF, IE8-11.
I usually don't add height property for text inputs and i use padding-top/bottom + line-height;
I think that should work, but in my IE input text a bit lower than it has to be.
Here is an example http://jsfiddle.net/FNMZS/1
HTML
<div id="all">
<input type="text" placeholder="Enter email" />
</div>
CSS
* {
padding:0px;
margin:0px;
}
#all {
padding:100px;
}
input {
border:1px solid #000;
font-family: Arial, sans-serif;
font-size:12px;
line-height:1em;
padding:4px 10px;
}