3 ms·
What’s stopping you from defining the gaps as individual entries in your template? First column ‘fr’ gap ‘15px’ second column ‘fr’ gap ‘30px’ third column ‘fr’
by mock-possum 3y ago
What’s stopping you from defining the gaps as individual entries in your template?
First column ‘fr’ gap ‘15px’ second column ‘fr’ gap ‘30px’ third column ‘fr’ and now you have three equal columns with two different gaps?
- muspimerol 3y agoThe downside with this approach is that I often want the element itself to define how much space is around it. When you conditionally include elements in a layout, I find margin more expressive and less cumbersome than changing the grid-template-column property of the parent.
- deleted 3y ago[deleted]