Skip to content

Instantly share code, notes, and snippets.

@jeromecoupe
Created February 26, 2012 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromecoupe/1916075 to your computer and use it in GitHub Desktop.
Save jeromecoupe/1916075 to your computer and use it in GitHub Desktop.
Float Clearing Styles
/* =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