CSS: clearfixHack

Published on Author craigzearfossLeave a comment
/*
Float Clearing http://nicolasgallagher.com/micro-clearfix-hack
*/

.group:after {
    content: " "; /* 1 */
    display: table; /* 2 */
    clear: both;
}

.group {
    *zoom: 1; /* 3 */
}

Leave a Reply

Your email address will not be published. Required fields are marked *