Skip to content

Instantly share code, notes, and snippets.

@ebonical
Created July 5, 2010 18:19
Show Gist options
  • Save ebonical/464566 to your computer and use it in GitHub Desktop.
Save ebonical/464566 to your computer and use it in GitHub Desktop.
css clearfix
<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