Commit 0618ee52 authored by catch's avatar catch
Browse files

Issue #961876 by RobW, seutje, idflood: Consider new clearfix methods.

parent 85ca3307
...@@ -242,19 +242,20 @@ html.js .js-hide { ...@@ -242,19 +242,20 @@ html.js .js-hide {
} }
/** /**
* Markup free clearing. * Float clearing.
* *
* @see http://perishablepress.com/press/2009/12/06/new-clearfix-hack * Based on the micro clearfix hack by Nicolas Gallagher, with the :before
* pseudo selector removed to allow normal top margin collapse.
*
* @see http://nicolasgallagher.com/micro-clearfix-hack
*/ */
.clearfix:after { .clearfix:after {
content: "."; content: "";
display: block; display: table;
height: 0;
clear: both; clear: both;
visibility: hidden;
} }
/* IE7 */
*:first-child + html .clearfix { .clearfix {
min-height: 1%; zoom: 1; /* hasLayout trigger to clear floats in IE */
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment