Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
0618ee52
Commit
0618ee52
authored
Oct 09, 2011
by
catch
Browse files
Issue
#961876
by RobW, seutje, idflood: Consider new clearfix methods.
parent
85ca3307
Changes
1
Show whitespace changes
Inline
Side-by-side
modules/system/system.base.css
View file @
0618ee52
...
...
@@ -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 */
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment