Created
April 19, 2012 05:11
-
-
Save mahdilacki/2418753 to your computer and use it in GitHub Desktop.
A new 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
| /* Start of "Micro clearfix" */ | |
| /* For modern browsers */ | |
| .cf:before, | |
| .cf:after { | |
| content:""; | |
| display:table; | |
| } | |
| .cf:after { | |
| clear:both; | |
| } | |
| /* For IE 6/7 (trigger hasLayout) */ | |
| .cf { | |
| zoom:1; | |
| } | |
| /* End of "Micro clearfix" */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment