Interesting that the `clearfix` hack is still being developed. This one works in IE8+ and is a lot leaner than the standard clearfix – great if you can drop IE6–7 support!
http://www.css-101.org/articles/clearfix/latest-new-clearfix-so-far.php
-
clearfix for modern browsers Who would think there is still something to write about clearfix? :) Two years ago, I wrote clearfix Reloaded + overflow:hidden Demystified, where I proposed an addition to the original clearfix rules in the form of the ::before pseudo-element to prevent collapsing margins in modern browsers.