Created
February 26, 2012 11:05
-
-
Save jeromecoupe/1916075 to your computer and use it in GitHub Desktop.
Float Clearing Styles
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
/* =Clearing floats without markup | |
To be combined with a Paul Irish approach of ie specific styles | |
<http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/> | |
---------------------------------*/ | |
.group:after { | |
content: "."; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} | |
.ie6 .group | |
{ | |
height: 1%; | |
} | |
.ie7 .group | |
{ | |
min-height: 1px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment