Skip to content

Instantly share code, notes, and snippets.

@TimeBandit
Created October 29, 2018 09:44
Show Gist options
  • Save TimeBandit/7618dc4c24d5500d99013c15cbecab29 to your computer and use it in GitHub Desktop.
Save TimeBandit/7618dc4c24d5500d99013c15cbecab29 to your computer and use it in GitHub Desktop.
clearfix hack for floats #css
/* floating collapses the containg div to height:0 this hack fixes that*/
.clearfix::after {
content: "";
clear: both;
display: table;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment