There's a difference in how buttons, text, form inputs and images are vertically aligned within the line box. A line box is the rectangle that makes up a line of text, essentially. The line is made up of three zones:
Code:
--------------------------------------------
1. Ascendor
--------------------------------------------
2. Middle (I always forget the correct term)
--------------------------------------------
3. Descendor
--------------------------------------------
Most letters have their bottom edge vertically aligned with the bottom of layer 2. Images ALSO have their bottom edge vertically aligned with the bottom of layer 2 (even image inputs).
Most form inputs, including buttons, are perfectly vertically aligned within the line box, with equal space above them and below them.
If you vertically align the image to the middle, then the gap beneath the image will disappear.
Code:
<input type="image"
src="images/go.gif"
value="Submit"
style="vertical-align: middle;"
/>
Bookmarks