clearfix.module.css

Same filename in this branch
  1. 9 core/themes/stable/css/system/components/clearfix.module.css
  2. 9 core/modules/system/css/components/clearfix.module.css
Same filename in other branches
  1. 8.9.x core/themes/stable/css/system/components/clearfix.module.css
  2. 8.9.x core/modules/system/css/components/clearfix.module.css
  3. 10 core/themes/stable9/css/system/components/clearfix.module.css
  4. 10 core/modules/system/css/components/clearfix.module.css
  5. 11.x core/themes/stable9/css/system/components/clearfix.module.css
  6. 11.x core/modules/system/css/components/clearfix.module.css

Float clearing.

Based on the micro clearfix hack by Nicolas Gallagher, with the :before pseudo selector removed to allow normal top margin collapse.

See also

http://nicolasgallagher.com/micro-clearfix-hack

File

core/themes/stable9/css/system/components/clearfix.module.css

View source
  1. /**
  2. * @file
  3. * Float clearing.
  4. *
  5. * Based on the micro clearfix hack by Nicolas Gallagher, with the :before
  6. * pseudo selector removed to allow normal top margin collapse.
  7. *
  8. * @see http://nicolasgallagher.com/micro-clearfix-hack
  9. */
  10. .clearfix:after {
  11. display: table;
  12. clear: both;
  13. content: "";
  14. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.