Skip to content

Instantly share code, notes, and snippets.

@bradbergeron-us
Created April 27, 2015 14:02
Show Gist options
  • Save bradbergeron-us/7fcaacab7c0c4db566f4 to your computer and use it in GitHub Desktop.
Save bradbergeron-us/7fcaacab7c0c4db566f4 to your computer and use it in GitHub Desktop.
CSS Clearfiix
.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