3hwjsa
Last Updated: February 25, 2016
·
639
· tommica
A997055a6f81a30ab0de790f2d6212d5

css clearfix

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

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
}
Say Thanks
Respond

1 Response
Add your response

2023
F8ec7f90daf8b1defb8e318d663c0f17

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

over 1 year ago ·