Currently Browsing: HTML/JS/CSS

Link > micro-clearfix-hack

update on clearfix technique from Nicolas Gallagher: micro-clearfix-hack

/* For modern browsers */
.cf:before,
.cf:after {
    content:"";
    display:table;
}
 
.cf:after {
    clear:both;
}
 
/* For IE 6/7 (trigger hasLayout) */
.cf {
    zoom:1;
}

Next Entries »