Created
March 20, 2012 16:33
-
-
Save kevinkatzke/2137972 to your computer and use it in GitHub Desktop.
CSS: Helfer Klassen "clearfix"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*****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