Skip to content

Instantly share code, notes, and snippets.

@adi518
Last active October 30, 2018 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adi518/7388910cc19247d39ede25e6fca29966 to your computer and use it in GitHub Desktop.
Save adi518/7388910cc19247d39ede25e6fca29966 to your computer and use it in GitHub Desktop.
Latest Clearfix hack
// https: //stackoverflow.com/a/3805213/4106263
// https: //stackoverflow.com/questions/211383/what-methods-of-clearfix-can-i-use
// https: //github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css#L169
.clearfix {
&::after,
&::before {
content: ' ';
/* 1 */
display: table;
/* 2 */
}
&::after {
clear: both;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment