Skip to content

Instantly share code, notes, and snippets.

@terkel
Last active October 24, 2022 07:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terkel/802698 to your computer and use it in GitHub Desktop.
Save terkel/802698 to your computer and use it in GitHub Desktop.
Clearfix
/* http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment