Created
July 29, 2010 16:17
-
-
Save jonraasch/498554 to your computer and use it in GitHub Desktop.
Alternative clearfix method
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
.clearfix:after{ | |
visibility: hidden; | |
display: block; | |
font-size: 0; | |
content: " "; | |
clear: both; | |
height: 0; | |
} | |
.clearfix{ display: inline-block;} | |
/* via Denise Jacobs http://denisejacobs.com/ | |
Does not work in IE 6/7 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well this method is a little bit too short. Use this: https://gist.github.com/700385