Created
September 26, 2012 18:37
-
-
Save mejarc/3789732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Thierry Koblentz's clearfix, 2010 */ | |
.clearfix:before, | |
.clearfix:after { | |
content: "."; | |
display: block; | |
height: 0; | |
overflow: hidden; | |
} | |
.clearfix:after {clear: both;} | |
.clearfix {zoom: 1;} /* IE < 8 */ | |
/* Nicolas Gallagher's. 2011 */ | |
.cf:before, | |
.cf:after { | |
content: " "; | |
display: table; | |
} | |
.cf:after { | |
clear: both; | |
} | |
/** | |
* For IE 6/7 only | |
* Include this rule to trigger hasLayout and contain floats. | |
*/ | |
.cf { | |
*zoom: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment