grid-column

Last Updated: May 1, 2022

The grid-column the property specifies the size of the grid item and its location.

Let’s define a grid item located on the 2nd column with 2 spans

1
2
3
4
5
6

The grid-column: 2 / 4; and grid-column: 2 / span 2; are same.

Test