Skip to content

First child of a grid not padded the same as the others #15425

Answered by wongjn
James-E-A asked this question in Help
Discussion options

You must be logged in to vote

The space-* utilities apply margin to all but the first element. Since you're using CSS grid, you're better off using gap-: https://play.tailwindcss.com/MY5Xu3Owts?file=css


As an aside, you may also wish to avoid @apply altogether as recommended by Adam Wathan, creator of Tailwind:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@James-E-A
Comment options

@devlzcode
Comment options

Answer selected by James-E-A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants