-
Flexbox/grid
gap
is one of the best improvements to CSS in awhile. It always works as expected, unlike margin collapses, even with conditional children. I’m now using padding + gap for almost all layout, with margin just for block typography.
gap
is one of the best improvements to CSS in awhile. It always works as expected, unlike margin collapses, even with conditional children. I’m now using padding + gap for almost all layout, with margin just for block typography.