Skip to content

Instantly share code, notes, and snippets.

@nasirkhan
Created May 18, 2013 05:32
Show Gist options
  • Save nasirkhan/5603357 to your computer and use it in GitHub Desktop.
Save nasirkhan/5603357 to your computer and use it in GitHub Desktop.
.clearfix:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix { display: inline-block; }
/* start commented backslash hack \*/
* html .clearfix { height: 1%; }
.clearfix { display: block; }
/* close commented backslash hack */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment