Skip to content

Instantly share code, notes, and snippets.

@kevinkatzke
Created March 20, 2012 16:33
Show Gist options
  • Save kevinkatzke/2137972 to your computer and use it in GitHub Desktop.
Save kevinkatzke/2137972 to your computer and use it in GitHub Desktop.
CSS: Helfer Klassen "clearfix"
/*****Helfer Klassen*****/
.clear {clear: both;margin: -1px 0 0 0;height: 0;font-size: 0;line-height: 0;width: 100%;}
.ahem {position: absolute;overflow: hidden;height: 0;width: 0;left: -1000px;top: -1000px;}
.clearfix:after {content: ".";display: block;height: 0;line-height: 0;font-size: 0; clear: both;visibility: hidden;}
.clearfix {display: block;}
* + html .clearfix {display: inline-block;}
* html .clearfix {height: 1%;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment