[thelist] IE & N6 - box models, background colours and images

aardvark roselli at earthlink.net
Tue Mar 5 21:07:01 CST 2002


> From: Fraser Crichton <fraser.crichton at infinity.co.nz>
>
> In version 6 browsers background colours set on headings and block
> level elements display behind images e.g. This CSS definition: h1
> {background-color: #ff0000; } and this html
>
> <img height="72" alt="" src="/images/blah.jpg" width="200"
> align="right" /> <h1>heading</h1>
>
> would give you and image on the right with a red band appearing behind
> it.

even though it's not within the <h1>?

> Can anyone think of a way of turning off this behaviour so that band
> only extends to the side of the image and not behind it??

give the img tag a background color of something else... is this to address
transparent images?  or something else?




More information about the thelist mailing list