Skip to content

Instantly share code, notes, and snippets.

@leodutra
Last active December 23, 2015 00:39
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 leodutra/6555338 to your computer and use it in GitHub Desktop.
Save leodutra/6555338 to your computer and use it in GitHub Desktop.
ClearFix CSS. Forces height on a container of "floater elements".
/* source: http://css-tricks.com/snippets/css/clear-fix/ */
.float-group:after {
visibility: hidden;
display: block;
content: "";
clear: both;
height: 0;
}
* html .float-group { zoom: 1; } /* IE6 */
*:first-child+html .float-group { zoom: 1; } /* IE7 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment