Skip to content

Instantly share code, notes, and snippets.

@mattlenz
Created February 11, 2013 05:09
Show Gist options
  • Save mattlenz/4752821 to your computer and use it in GitHub Desktop.
Save mattlenz/4752821 to your computer and use it in GitHub Desktop.
Modern clearfix
.clearfix:before, .clearfix:after {
content: ' ';
display: table;
}
.clearfix:after, .wrapper:after {
clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment