Created
July 5, 2010 18:19
-
-
Save ebonical/464566 to your computer and use it in GitHub Desktop.
css clearfix
This file contains 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
<style type="text/css"> | |
.clearfix:after { | |
content: "."; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: hidden; | |
} | |
</style> | |
<!--[if IE]> | |
<style type="text/css"> | |
.clearfix { | |
zoom: 1; /* triggers hasLayout */ | |
} | |
</style> | |
<![endif]--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment