Better HN
topnewbestaskshowjobs
Log inSign up

kybradeck

5 karma · joined Feb 2, 2018 (8y ago) · 3 submissions

Product Designer @Dropbox.
Submissions

comment 8y ago · link · parent

Yes, but that would mean the first gridline == 0 and the last gridline == -1, instead of the way the spec is written today, where the first gridline == 1 and the last gridline == -1. For me, consistency wins here.

comment 8y ago · link · parent

I believe it's so that you can use -1 to refer to the last gridline. If it was 0-indexed there would be no way to target that final gridline, or there would be a one-off error when using negative numbers.

Example: https://css-tricks.com/things-ive-learned-css-grid-layout/#a...

comment 8y ago · link · parent

The video mentions that CSS Grids are used in the production site for the NYTimes. See https://open.nytimes.com/bootstrap-to-css-grid-87b3f5f830e4.