Skip to content

Instantly share code, notes, and snippets.

@jayfallon
Created December 2, 2009 22:36
Show Gist options
  • Save jayfallon/247674 to your computer and use it in GitHub Desktop.
Save jayfallon/247674 to your computer and use it in GitHub Desktop.
/* clearfix */
.clearfix:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.clearfix {
display: inline-block;
}
html[xmlns] .clearfix {
display: block;
}
* html .clearfix {
height: 1%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment