Created
July 9, 2011 22:43
-
-
Save rozmiarek/1074019 to your computer and use it in GitHub Desktop.
A new micro clearfix hack - http://nicolasgallagher.com/micro-clearfix-hack/
This file contains hidden or 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
/* For modern browsers */ | |
.cf:before, | |
.cf:after { | |
content:""; | |
display:table; | |
} | |
.cf:after { | |
clear:both; | |
} | |
/* For IE 6/7 (trigger hasLayout) */ | |
.cf { | |
zoom:1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment