The grid-template-rows Property

Use the grid-template-rows property to define the size of the rows in a grid layout.

The first row in this grid is 100px high, and the second row is 300px high:

1
2
3
4
5
6
7
8

The grid-template-columns Property

Use the grid-template-columns property to define the number of columns in the grid layout.

This grid layout has four columns:

1
2
3
4
5
6
7
8