Previous Message
Next Message

RE: [css-d] Unwanted space at bottom of image

Sent by Tribou, Eric on 26 February 2003 21:09


To touch upon further what Eric said, Craig Saila has some information on
this at his web site on this as well. It's available at:
http://www.saila.com/usage/tips/defn.shtml?img_gutter

There's two fixes you could go with.

The first would be to add to your #mRight img selector and set the display
property to block and float property to left.

The other would be to set the vertical-align property in your #mRight img
selector to "top". As Eric said, the image is being treated as an inline
element and thus is being put on the baseline of the text. Aligning it to
the top of the text, in your case, fixes the problem as well. However I do
not believe that to be an fix for every instance.

-Eric Tribou
Previous Message
Next Message

Possibly related: