Kevin Powell - CommunityKP-C
Kevin Powell - Community15mo ago
7 replies
Faker

How do grid lines work in CSS grid?

Hello guys, sorry to disturb you all; can someone explain how the CSS grid lines work please; the thing I'm not understanding is why the grid lines (represented by the black line) doesn't start on the edge of the rows or columns but before the rows or columns, like in the gap, I'm very confused about that. It is like if our grid-container has a padding and the black line is drawn in this padding.

Second is why we always have 1 more row grid line or 1 more column grid line that actual number of rows and columns.
6D21368A-A3E3-4A65-B7AA-661CB12975BA.png
Was this page helpful?