I have two buttons, one of which is implemented as an input, the other as a gap. They are placed next to each other:
{ display:inline-block; }
Buttons are displayed from a custom tag, and the class name is dynamically added to jsp. Css has a specific definition for shadow, for background gradient, for fill, and for font. They use some CSS3, such as border-radius.
But in Firefox, the height of the span button is 18, and the input is 20. Interestingly, their height in IE 8 is 25px, why?
Now I need them to be the same height and horizontally aligned.
Update: Now I have two buttons in jsfiddle. Usage Height: 22px; and vertical-align: top; will not help.
http://jsfiddle.net/gBeCP/
dunfa source share