HTML & CSS
I don't understand why white space after my image is removed when i add a vertical:middle style. Can anyone explain this to me?
Here is my code:
Images are placed by default on the baseline not the bottom (just as text is) which leaves room underneath for descenders and so that the bottom of the image is at the bottom of the text (bar the descender). When you change the vertical-alignment to middle then it is no longer on the baseline and the gap underneath disappears.
This topic is now closed. New replies are no longer allowed.