Created
September 26, 2016 20:20
-
-
Save Lego2012/d460ac16c2054fe117d6da383bd83286 to your computer and use it in GitHub Desktop.
Clearfix CSS Hack
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
/* slightly enhanced, universal clearfix hack */ | |
.clearfix:after { | |
visibility: hidden; | |
display: block; | |
font-size: 0; | |
content: " "; | |
clear: both; | |
height: 0; | |
} | |
.clearfix { display: inline-block; } | |
/* start commented backslash hack \*/ | |
* html .clearfix { height: 1%; } | |
.clearfix { display: block; } | |
/* close commented backslash hack */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment