Skip to content

Instantly share code, notes, and snippets.

@don1138
Last active August 7, 2016 21:58
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 don1138/5760977 to your computer and use it in GitHub Desktop.
Save don1138/5760977 to your computer and use it in GitHub Desktop.
CSS Clearfix
/* CLEARFIX */
.clearfix:before, .container:after { content: ""; display: table; }
.clearfix:after { clear: both; }
/* IE 6/7 */
.clearfix { zoom: 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment