Answers for "why to use 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

Browse Popular Code Answers by Language