You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cvrebert
changed the title
The clearfix rule may create unwanted gaps between blocks
display:table in .clearfix rule may create unwanted gaps between blocks
May 29, 2016
It may be worth editing the documention too as it says:
Easily clear floats by adding .clearfix to the parent element. Utilizes the micro clearfix as popularized by Nicolas Gallagher. Can also be used as a mixin.
since the new rule does not have much to do with the "micro clearfix" anymore.
The clearfix rule has changed to reflect the latest new clearfix so far but as this more recent article explains,
display:table
may create unwanted gaps between blocks.So my suggestion is to replace the existing _clearfix.scss:
with:
The text was updated successfully, but these errors were encountered: