Content
Header
Content
grid-column,grid-row
and we indicate numbers who define where the elements should start and end. We also saw that we can use
grid-template-areas
who allow us to create directly the layout in our css. Well there is
an other way to place our elements by giving them names.grid-template: 40px 200px 40px / [main-start] 1fr [content-start] 5fr [content-end main-end]
.[]
before our column or row, and we gives a name.header
the code should be grid-column: main-start / main-end
we simply replace the number by the name of the column we want, of curse this also works with row
.