Skip to content

Instantly share code, notes, and snippets.

@rwbaker
Created October 16, 2011 21:03
Show Gist options
  • Save rwbaker/1291418 to your computer and use it in GitHub Desktop.
Save rwbaker/1291418 to your computer and use it in GitHub Desktop.
Clearfix
/*
Author: Nathan Smith; sonspring.com
Source: http://960.gs
*/
.clear
{clear:both; display:block; overflow:hidden; visibility:hidden; width:0; height:0}
.clearfix:before,.clearfix:after
{content:'\0020'; display:block; overflow:hidden; visibility:hidden; width:0; height:0}
.clearfix:after
{clear:both}
.clearfix
{zoom:1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment