Answers for "clearfix"

CSS
0

clearfix

.clearfix:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    font-size: 0;
    height: 0;
    }
 
.clearfix { 
   *display: inline-block; 
   _height: 1%;
}

/* use when overflow hidden can't be used
Posted by: Guest on March-19-2021
0

.clearfix

.clearfix::after {
  content: "";
  clear: both;
  
  display: table;
}
Posted by: Guest on May-08-2021
0

clearfix

.clearfix::after {
  content: "";
  clear: both;

    display: table;
}
Posted by: Guest on June-01-2021

Browse Popular Code Answers by Language