I created a submit button with a custom background image. But in different browsers it is different in different ways.
Almost all browsers show this correctly:

But at 2 it has an extra height:

Can anyone indicate what happened to my markup?
CSS
input[type="submit"]{ background: url(http://dl.dropbox.com/u/17055243/icons.png) -99px 0px no-repeat; width:30px; height:30px; border:none; float:left; margin:30px 0 0; cursor:pointer; }
HTML:
<form> <input type="text" class="placeholder" value="Search" /> <input type="submit" value="" /> </form>
Tested:
- IE 8.0 is good
- IE 7.0 is good
- iPhone is good
- Chrome 24.0 is good
- Firefox 18.0.2 is good
- Safari 5.1 (Mac OS X 10.7.1) Good
- Opera 12.14 (Windows 7 32-bit) is good
- Safari 5.1.7 (32-bit version of Windows 7) extra height
- Opera 11.51 (Mac OS X 10.7.1) extra height
Live demo on jsfiddle .
source share