From 73f1bcf7179b3050d2e8e0dd65c3f87667ceed7f Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Fri, 19 Aug 2011 20:20:48 -0700 Subject: Simpler clearfix #2 http://nicolasgallagher.com/micro-clearfix-hack/ --- lib/preboot.less | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/preboot.less b/lib/preboot.less index 38b81f701..b90021ebe 100644 --- a/lib/preboot.less +++ b/lib/preboot.less @@ -54,15 +54,15 @@ // MIXINS // ------ -// Clearfix for clearing floats like a boss +// Clearfix for clearing floats like a boss h5bp.com/q .clearfix { zoom: 1; + &:before, &:after { + display: table; + content: ""; + } &:after { - display: block; - visibility: hidden; - height: 0; clear: both; - content: "."; } } -- cgit v1.2.3