Skip to content

Instantly share code, notes, and snippets.

@stanosmith
Last active March 29, 2018 17:58
Show Gist options
  • Save stanosmith/7c356bd83a516f464597de469190ccef to your computer and use it in GitHub Desktop.
Save stanosmith/7c356bd83a516f464597de469190ccef to your computer and use it in GitHub Desktop.
The Clearfix: Force an Element To Self-Clear its Children
/* All credit to Chris Coyier - via: https://css-tricks.com/snippets/css/clear-fix */
.selector:after {
content: "";
display: table;
clear: both;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment