CSS Grid - Span

I'm very confused with this example... span 3 / 5, but I wonder if my answer is correct and I'm just not finding the right answer when googling..so I'm then unsure 😄
grid-column: span 3 / 5;
grid-column: span 3 / 5;
I see this as... span 3 columns, end on the 5th, so it'll span 3 columns from the 5th line, back to the start?
No description
4 Replies
MarkBoots
MarkBoots•2mo ago
think they are looking for grid-column: 2 / span 3 so start at 2, span 3 for the end
CDL
CDL•2mo ago
I didn't know you could do that, but that seems like it, thanks! 🙂
MarkBoots
MarkBoots•2mo ago
just thinking, your solution would be correct as well. the end is set to 5 and the start span 3 from that. but for me that is less readable
CDL
CDL•2mo ago
I agree, I was throwing numbers out there until it worked. 2 / span x makes more sense, as I see the first number as the starting point.
Want results from more Discord servers?
Add your server