Css grid

How do I make elements in a display grid not fill up their cells completely? (And use intrinsic sizing instead)
2 Replies
Mannix
Mannix4mo ago
align-items: start if i'm not mistaken
clevermissfox
clevermissfox4mo ago
Or center or end depending how you want it to vertically align in their cells. Same with justify-items for inline axis. Default style is stretch so they all stretch to fit their cells.

Did you find this page helpful?