Created
June 21, 2012 13:05
-
-
Save ksafranski/2965635 to your computer and use it in GitHub Desktop.
Easy self-clear for floats
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
/* clearing floats normal browsers */ | |
.group:after { | |
content: ""; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} | |
/* clearing floats IE6 */ | |
* html .group { height: 1px; } | |
/* clearing floats IE7 */ | |
*:first-child+html .group { min-height: 1px; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment