Skip to content

Instantly share code, notes, and snippets.

@djanix
Last active October 2, 2015 00:28
Show Gist options
  • Save djanix/2135669 to your computer and use it in GitHub Desktop.
Save djanix/2135669 to your computer and use it in GitHub Desktop.
css -> Clear after a float element for all browser and without adding aditionnal markup in the html
.clearfix:before, .clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment