The Gap
June 3, 2024
An exploration of the pain points that CSS gap solves
Not long ago, when managing spacing on the web, our first thought would often be to use
margin
. Consider a card component, for instance, which includes an image, title, and description. In such a layout,margin
was the go-to solution for controlling the spacing between these elements.
Source: The Gap
The prolific and prolifically talented Ahmad Shadeed takes a deeper look at the gap property, which wil likely save you a plot of pain and effort with your layouts.