Last active
December 14, 2015 10:08
-
-
Save mwalters/5069448 to your computer and use it in GitHub Desktop.
Snippet: CSS Clear Fix (Source: http://css-tricks.com/snippets/css/clear-fix/)
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
/* 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