Last Updated: February 25, 2016
·
433
· andredgusmao

Css3 clearfix class

A really nice way to clear float elements, taken from http://html5boilerplate.com/

.clearfix:after { 
  content: "."; 
  display: block; 
  height: 0; 
  clear: both; 
  visibility: hidden; 
}
.clearfix { 
  display: inline-block;  
}
* html .clearfix {  
  height: 1%;  
} /* Hides from IE-mac \*/
.clearfix {  
  display: block;  
}