Skip to content

Instantly share code, notes, and snippets.

@jonraasch
Created July 29, 2010 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonraasch/498554 to your computer and use it in GitHub Desktop.
Save jonraasch/498554 to your computer and use it in GitHub Desktop.
Alternative clearfix method
.clearfix:after{
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.clearfix{ display: inline-block;}
/* via Denise Jacobs http://denisejacobs.com/
Does not work in IE 6/7
*/
@jensgro
Copy link

jensgro commented May 9, 2011

Well this method is a little bit too short. Use this: https://gist.github.com/700385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment