×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: CSS
Posted by: Rodrigo (Digão) Ferreira
Added: Jun 17, 2013 8:20 PM
Views: 13
Tags: css clearfix
http://perishablepress.com/lessons-learned-concerning-the-clearfix-css-hack/
  1. .clearfix:after {
  2.      content: ".";
  3.      display: block;
  4.      height: 0;
  5.      clear: both;
  6.      visibility: hidden;
  7. }
  8.  
  9. .clearfix {display: inline-block;}
  10.  
  11. /* Hides from IE-mac \*/
  12. * html .clearfix {height: 1%;}
  13. .clearfix {display: block;}
  14. /* End hide from IE-mac */