clearfix

Solutions on MaxInterview for clearfix by the best coders in the world

showing results for - "clearfix"
Carla
04 May 2018
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
Mila
04 May 2019
1
2.clearfix::after {
3  content: "";
4  clear: both;
5
6    display: table;
7} 
Beatrice
16 May 2019
1
2  .clearfix::after {
3  content: "";
4  clear: both;
5  
6  display: table;
7}