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/

Reply via email to