4 ms·
Interesting, I did not know that overflow:hidden resized the parent container to the floated elements. It looks like the difference may be some legacy IE6 thin
by martin-adams 10y ago
Interesting, I did not know that overflow:hidden resized the parent container to the floated elements.
It looks like the difference may be some legacy IE6 thing.
- thomasahle 10y agoWhy doesn't it just crop the element to fit, as with everything else?
- martin-adams 10y agoThat was my immediate thought then I tried it out. I suspect it's to do with causing some hasLayout which recalculates the content dimensions.
- SippinLean 10y agohasLayout is IE-only and dead since IE7
- rossriley 10y agoYou can set overflow to visible too, just setting overflow to non-auto is enough to trigger it.
- SippinLean 10y agoNo, just auto, hidden, overlay, and scroll. Visible will not trigger the clearfix.