Skip to content

Instantly share code, notes, and snippets.

@teeaich
Created June 2, 2013 16:34
Show Gist options
  • Save teeaich/5694060 to your computer and use it in GitHub Desktop.
Save teeaich/5694060 to your computer and use it in GitHub Desktop.
classic CSS Clearfix
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment