Created
September 24, 2012 08:57
-
-
Save welkang/3775008 to your computer and use it in GitHub Desktop.
clear the float
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
/* new clearfix */ | |
.clearfix:after { | |
visibility: hidden; | |
display: block; | |
font-size: 0; | |
content: " "; | |
clear: both; | |
height: 0; | |
} | |
* html .clearfix { | |
zoom: 1; | |
}/* IE6 */ | |
*:first-child+ html .clearfix { | |
zoom: 1; | |
} /* IE7 */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment