Skip to content

Instantly share code, notes, and snippets.

@kejyun
Last active December 11, 2015 11:18
Show Gist options
  • Save kejyun/4592647 to your computer and use it in GitHub Desktop.
Save kejyun/4592647 to your computer and use it in GitHub Desktop.
clearfix css
/*
<div class="parent_group">
<div class="float-left"> </div>
<p> ABC123 </p>
</div>
*/
.parent_group:before, .parent_group:after {
content: "";
display: block;
}
.parent_group:after {
clear: both;
}
.parent_group {
zoom: 1; /* IE6&7 */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment