Anyone know why overflow:hidden forces an element with floated elements to wrap the elements?
I really want to understand the inner workings rather than just using it and trusting that ‘it just works’.
I can understand how it works when the containing element is floated in the same direction as child elements that are floated, but overflow:hidden means to crop overflowing content (when used with position:absolute/relative).
Any info appreciated.
The block formatting context clears the floats. Source: http://www.w3.org/TR/CSS2/visuren.html#block-formatting