Previous Message
Next Message

float problem in IE

Sent by Holly Bergevin on 24 December 2003 06:06


From: "Day, Jeffrey A." [EMAIL-REMOVED]>

>> [1] http://www.positioniseverything.net/explorer/escape-floats.html 
>
>I've recently been having a problem like this as well involving floated images,
>
>  (see:
>http://www.betsyrae.com/catalog/ethel.html for an example.)  When I was floating
>the images to get this same effect, the border wrapped around the text, but not
>the image. 
>
>However, I have looked at the above link in NN7 and Safari and (of course) it
>doesn't have the escape-floats bug that appears in IE.  Seeing this, I promptly
>tried wrapping my images and text in divs and floating -those-, and the same
>problem returned.
>
>What is different about my code that I am getting this error in NN and Safari
>when it is (usually) an IE trouble?

Hi Jeff - Chances are you need to add a clearing element after the floats but before the end of
their container in order to get the border to enclose the floats too. If you check the source of the
above referenced demo, you will notice there is a div with an inline style element of "clear: both;"
that follows all the floats. 

hth,

~holly 
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Possibly related: