Kevin Powell - CommunityKP-C
Kevin Powell - Communityβ€’4mo agoβ€’
23 replies
Nishruu

Unwanted whitespace with subgrids

Hello everyone. I don't find anything useful to help me understand why the first row on this codepen has that vertical whitespace (on the image it's the red area) when I put gap: 30px on the grid container.
I can fix this whitespace by putting gap: 0 on the container but then I lose the vertical gap between the cards so it's not useful.
What I want is for the card to take a little height as possible and sharing the available space.

https://codepen.io/Uurshin/pen/pvgJLOP
image.png
CodePenUurshin
...
Untitled
Was this page helpful?