Skip to content

Instantly share code, notes, and snippets.

@slant
Created January 13, 2009 22:24
Show Gist options
  • Save slant/46654 to your computer and use it in GitHub Desktop.
Save slant/46654 to your computer and use it in GitHub Desktop.
/*******************************/
/* Begin fix for crappy IE 6 */
/* float clearing bug */
/*******************************/
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {
display: inline-block;
}
/******************************/
/* Hides from IE-mac \*/
* html .clearfix { height: 1%; }
.clearfix { display: block; }
/* End hide from IE-mac */
/******************************/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment