Last Updated: February 25, 2016
·
794
· tommica

css clearfix

.clearfix:before,
.clearfix:after {
    content: ".";    
    display: block;    
    height: 0;    
    overflow: hidden;   
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
}

1 Response
Add your response

Thanks! I don't think there's a need to style :before though.

over 1 year ago ·