4 ms·
Why wouldn't grid-column-start/end be zero indexed?
by Honzo 10y ago
Why wouldn't grid-column-start/end be zero indexed?
- Honzo 10y agoAh I'm thinking of it wrong. The indexes are not the boxes but the splits in between. | <- 0 1 -> | <- 1 2 -> | <- 2 3 -> | That makes more sense.
- ahoy 10y agoYou're halfway there. The indices are the grid lines, but they're also one-indexed. That's consistent with other parts of CSS, though it's inconsistent with the rest of the programming world.