Skip to content
Snippets Groups Projects
Commit 0618ee52 authored by catch's avatar catch
Browse files

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

parent 85ca3307
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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 {
content: ".";
display: block;
height: 0;
content: "";
display: table;
clear: both;
visibility: hidden;
}
/* IE7 */
*:first-child + html .clearfix {
min-height: 1%;
.clearfix {
zoom: 1; /* hasLayout trigger to clear floats in IE */
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment