Last active
December 11, 2015 11:18
-
-
Save kejyun/4592647 to your computer and use it in GitHub Desktop.
clearfix css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
<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