grid-column-start
Example
.item {
grid-column-start: 0;
}.item {
grid-column-start: 2;
}Grid lines are numbered from 1, so 0 is invalid and the declaration is ignored.
Common mistakes
- Using 0 as the first column line, which is invalid.
Key points
- Placement uses the shorthand
grid-columnunless only the start line is needed. - Line numbers start at 1, not 0.
Interview questions
Can grid-column-start use a named line?
Yes. If the template names a line like [content-start], you can write grid-column-start: content-start.
What does grid-column-start: span 2 do?
The item spans two columns, ending at the line set by grid-column-end.