When Firefox displays images on XHTML pages it leaves an empty margin beneath them. Setting padding and margin to 0 does nothing. Note that the problem is exclusive to XHTML
Solutions are:
- Remove the doctype statement from the top of XHTML code. This will force Firefox to treat your page as a common tag soup and the space will disappear.
- Add
display: block;to image style.

Комментарии