.page { display: grid; grid-template-areas: "header header" "sidebar main" "footer footer"; } .site-header { grid-area: header; }Header and footer span two columns, while sidebar and content share the middle row.
LESSON 68 OF 100
Describe a page with header, sidebar, content and footer visually.
grid-template-areas describes each row with a string of names, while grid-area assigns each item to its area. Visual order must not replace logical, accessible HTML source order.
.page { display: grid; grid-template-areas: "header header" "sidebar main" "footer footer"; } .site-header { grid-area: header; }Header and footer span two columns, while sidebar and content share the middle row.
.page { grid-template-areas: "header main" "footer"; }Area-template rows must have the same number of cells, and the container must activate Grid.
Define the three area rows and assign each element its matching name.
The template names the cells, and each grid-area connects an existing semantic element to its matching area.
ANALYSIS REQUEST
The initial discussion is without obligation. You receive an honest recommendation, suitable stages and the factors that affect price.