The grid-template-rows CSS property defines the line names and track sizing functions of the grid rows. This defines the heights of rows.
#layout {
display: grid;
/* Three lines that define three rows of 100, 400 and 100px */
grid-template-rows: 100px 400px 100px;
}Source: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows
The grid-template-columns CSS property defines the line names and track sizing functions of the grid columns. This defines the widths of rows.
#layout {
display: grid;
/* Three lines that define three columns of 200, 500 and 200px */
grid-template-columns: 200px 500px 200px;
}Source: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns
Important: rows go from left to right and columns from top to bottom in languages like English or Spanish, but for other languages, like Corean, rows will actually go from top to bottom, and columns will be horizontal.