Created
October 10, 2012 20:01
-
-
Save jamischarles/3868054 to your computer and use it in GitHub Desktop.
Modern clearfix
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
/* (taken from bootstrap github conversation) */ | |
/* Utility classes */ | |
/* Clearfix */ | |
/* Clearfix for modern browsers */ | |
.cf:before, | |
.cf:after { | |
content: ""; | |
display: table; | |
} | |
.cf:after { | |
clear: both; | |
} | |
/* Clear fix for IE 6/7 (trigger has layout) */ | |
.cf { | |
zoom: 1; | |
} | |
/* Not clearfix, but extremely useful */ | |
.hidden { | |
display: none; | |
} | |
.fl { float: left;} | |
.fr { float: right; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment