Skip to content

Instantly share code, notes, and snippets.

@greg606
Created April 26, 2012 12:22
Show Gist options
  • Save greg606/2499231 to your computer and use it in GitHub Desktop.
Save greg606/2499231 to your computer and use it in GitHub Desktop.
modern semantic css clear float
.group:after {
visibility: hidden;
display: block;
content: "";
clear: both;
height: 0;
}
* html .group { zoom: 1; } /* IE6 */
*:first-child+html .group { zoom: 1; } /* IE7 */
/* see: http://css-tricks.com/snippets/css/clear-fix/ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment