Overflow auto on the container element always works well for me.
Blake wrote: > On Tue, Mar 4, 2008 at 4:07 PM, 5h4rk @ gmail <[EMAIL PROTECTED]> wrote: > >> Hi all, in order for a parent element to wrap a floating child element >> correctly, I used to use either "overflow:hidden" or "float:left" or >> "float:right" for the parent element, both work fine for me, but I'd >> like to know the difference between them and when to use what. >> > > Well float obviously floats the element, so it prevents you from > keeping that element centred. So you can't use float in a situation > like that. > > overflow: hidden; can also be inconvenient if you want to have > elements outside the bounds of their container. Also IIRC overflow: > hidden; doesn't make the element wrap around the height of it's > children in IE6, so it's best to use float: left; for that purpose in > my experience. > ______________________________________________________________________ > 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/ > > (Scanned by Sigmer MailScanner and believed to be clean) > -- *Louise Lawrance* Designer T: +44 (0) 1273 669 700 F: +44 (0) 1273 669 701 E: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> W: www.sigmer.com <http://www.sigmer.com> *Sigmer Technologies Ltd* The Sussex Innovation Centre University of Sussex, Falmer Brighton, East Sussex BN1 9SB */considered IT solutions/* LEGAL DISCLAIMER: This message and its attachments are confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, please telephone or email the sender and delete this message and any attachments from your system. Further, you should not disclose, copy, distribute or use this message and its attachments. Whilst any attachments may have been checked for viruses, you should rely on your own virus checker and procedures. If you contact us by e-mail, we will store your name and address to facilitate communications. ______________________________________________________________________ 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/