Created
May 6, 2012 17:06
-
-
Save spikensbror/2623322 to your computer and use it in GitHub Desktop.
Easy non-html clearfix.
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
/* float clearing for IE6 */ | |
* html .clearfix{ | |
height: 1%; | |
overflow: visible; | |
} | |
/* float clearing for IE7 */ | |
*+html .clearfix{ | |
min-height: 1%; | |
} | |
/* float clearing for everyone else */ | |
.clearfix:after{ | |
clear: both; | |
content: "."; | |
display: block; | |
height: 0; | |
visibility: hidden; | |
font-size: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment