This is an interesting discussion, I have always used <div
class="cleardiv"></div> on the page and then put
.cleardiv {height: 1em; clear:both;} in the style sheet. Not sure if this is
the best way, its seemed to work well without testing it too rigorously.
I've definitely got some new ideas now to try out though.

Tim

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Thierry Koblentz
Sent: Tuesday, 13 November 2007 9:04 AM
To: wsg@webstandardsgroup.org
Subject: RE: [WSG] Best way to clear a float

> On Behalf Of John Faulds

>> *Sometimes* I find this works:
>> #parent {overflow: auto;}

> You need to combine that with a width for it to work in IE. 

I think it is a hasLayout issue, so it is possible to make it work without
having to declare a width (using zoom:1 for example).

> You might also  
> find in some situations that you need to use oveflow: hidden as auto will

> create scrollbars.

I agree. The thing to watch for though is if there is a IE min-height hack
(_height) involved...

-- 
Regards,
Thierry | http://www.TJKDesign.com






*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to