> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> discuss.org] On Behalf Of ray
> Sent: Wednesday, November 05, 2008 7:01 AM
> To: css-d@lists.css-discuss.org
> Subject: [css-d] Is overflow:hidden the best?
> 
> Hi, all
> 
> What is the best way of forcing a container box enclose its floats?
> clear:both is not good, because it would make the cleared element below
all
> previous floats. It's inappropriate on a column setup layout.
> I also tested overflow:auto, but in many times an annoying scroll bar
> appears.
> How about overflow:hidden, it's the best way?

I don't know if it is the best way, but it is not enough, as for IE you need
hasLayout. 
This article discusses a few different ways to contain floats: 
http://www.tjkdesign.com/articles/clearing-floats_and_block-formatting_conte
xt.asp

The demo is here:
http://www.tjkdesign.com/articles/block-formatting_context/newBFC.asp

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




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to