1.clearfix:after {
2 content: "";
3 display: block;
4 clear: both;
5 visibility: hidden;
6 font-size: 0;
7 height: 0;
8 }
9
10.clearfix {
11 *display: inline-block;
12 _height: 1%;
13}
14
15/* use when overflow hidden can't be used
1
2 .clearfix::after {
3 content: "";
4 clear: both;
5
6 display: table;
7}