[thelist] cause of this 2px space? (follow up)

Marc Seyon seyon at delime.com
Fri Apr 19 22:42:01 CDT 2002


Message from Andrew Clover (4/19/2002 10:34 AM)
>Marc Seyon <seyon at delime.com> wrote:
>
> > If you look at the right side of the blue bar at top, IE and Opera
> > apparently place the image 2 pixels away from the edge of the div,
> > causing the background colour to be visible.
>
>Aye. You'll love this - it's caused by the default value for the
>non-standard HTML attribute 'hspace' on floated images. Which is not
>overridable from CSS in IE/Win.

*sigh*

>  - since the block is already right-aligned anyway, just put the
>    image after the text, non-floated, using 'vertical-align: top'
>    to get it off the baseline.

Yup, this worked. Thanks a lot!

regards.
-marc



More information about the thelist mailing list