Skip to content

Instantly share code, notes, and snippets.

@embarq
Last active June 17, 2016 10:19
Show Gist options
  • Select an option

  • Save embarq/65ad5a18715911ad412d711d80180610 to your computer and use it in GitHub Desktop.

Select an option

Save embarq/65ad5a18715911ad412d711d80180610 to your computer and use it in GitHub Desktop.
Clearfix
<header>...</header>
<div class="clearfix">
<section>...</section>
<aside>...</aside>
</div>
<footer>...</footer>
.clearfix::before,
.clearfix::after {
content: "";
display: table;
}
.clearfix::after {
clear: both;
}
.clearfix {
clear: both;
*zoom: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment