Skip to content

Instantly share code, notes, and snippets.

@procload
Created October 14, 2010 15:13
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 procload/626338 to your computer and use it in GitHub Desktop.
Save procload/626338 to your computer and use it in GitHub Desktop.
/******************************************
Misc/Hacks/Clears/Groups */
/* Clears for floats */
.clear {
clear: both;
display: block;
overflow: hidden;
visibility: hidden;
width: 0;
height: 0;
}
.group:after {
visibility: hidden;
display: block;
font-size: 0;
content: ".";
clear: both;
height: 0;
}
* html .group { zoom: 1; } /* IE6 */
*:first-child+html .group { zoom: 1; } /* IE7 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment