Learn about the challenges of using margins in CSS, the benefits of using the 'gap' property, and alternatives to consider for managing spacing in your layouts.
Table of contents
IntroductionThings to care about when using marginsPre-gap gutters with flexbox and negative marginsThe gap propertyBrowser support for gapReasons to use CSS gapIf you can’t use gap, at least do:Examples of spacing usages from Threads appOutroSubscribe to my newsletter4 Comments
Sort: