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

Fraser Crichton fraser.crichton at infinity.co.nz
Tue Mar 5 22:46:01 CST 2002


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
--
[ Picked text/plain from multipart/alternative ]
Cheers,

setting background-color on the image was the trick.

Ta,

Fraser
-----Original Message-----
From: aardvark [mailto:roselli at earthlink.net]
Sent: Wednesday, March 06, 2002 4:06 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] IE & N6 - box models, background colours and
images


> 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?

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !

The information contained in this email is privileged and confidential and
intended for the addressee only. If you are not the intended recipient, you
are asked to respect that confidentiality and not disclose, copy or make use
of its contents. If received in error you are asked to destroy this email
and contact the sender immediately. Your assistance is appreciated.



More information about the thelist mailing list