L. Robinson wrote:

> If overflow: auto or hidden is used merely to clear an element, what 
> prevents the occasional chopping off of needed data (hidden) or the 
> addition of nasty little scroll bars everywhere (auto) where one 
> might not want them?
> 
> K. What is it I don't understand? :)

Probably the part about 'Block formatting contexts'...
<http://www.w3.org/TR/CSS21/visuren.html#q15>

It does work well in many cases, as long as the container we declare
'overflow: hidden/auto' on also has a 'height: auto' (which is default).
Then the container will just grow as tall as it needs to be in order to
completely enclose/contain the floating elements, and the result is just
fine.

That is: unless some element (float or otherwise) is styled to appear
partly or completely outside the edge of the container. The
overflow-property will then cut off the overshooting part of such an
element, and the result will be just as you described.

So, the overflow-property is a useful solution for containing floats in
some cases, but not in others.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to