Created
January 12, 2011 15:26
-
-
Save prestontimmons/776293 to your computer and use it in GitHub Desktop.
clearfix.css
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
/* ----------------------- | |
clearfix | |
from http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack/ | |
*/ | |
.group:after { | |
visibility: hidden; | |
display: block; | |
font-size: 0; | |
content: " "; | |
clear: both; | |
height: 0; | |
} | |
.group { display: inline-block; } | |
/* start commented backslash hack \*/ | |
* html .group { height: 1%; } | |
* .group { display: block; } | |
*/* close commented backslash hack */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment