Previous Message
Next Message

Explorer bug ? Elements hidden when background colour and floats used.

Sent by cj on 28 February 2006 17:05


On 2/10/06, Rupert Breheny [EMAIL-REMOVED]> wrote:
> <html>
> <head>
> <style type="text/css">
>        p {border: 1px solid black;}
>        div {background:red;}
>        #floatMe {float:left;}
>        #clearMe {clear:left;}
> </style>
> </head>
> <body>
> <p>In the DIV below are 3 paragraphs. The first is unstyled, the
> second floats left, the thrid clears left. In Explorer 6 PC the first
> P does not display, but can be highlighted, or it will sometimes
> reappear if a window is moved over it and then away again.  All the
> syles are in the head. Remove the float or clear and the top P
> displays fine. I have stripped out all the extraneous code, but it WAS
> validating as strict HTML. Any ideas why this might be happening?</p>
> <div>
>        <p>I am hiding???</p>
>        <p id="floatMe">I float left</p>
>        <p id="clearMe">I clear left</p>
> </div>
> </body>
> </html>

it might have to do with giving the <p>s layout (for ie only of
course).  after putting a "height: 0;" in there it showed up just fine
for me on ie6.
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: