Coding task · HTML and CSS course · Module 8: CSS Grid

Layout with grid-template-areas

grid-template-areas lets you name areas like rooms in a temple. You define a map: 'header header' 'sidebar main' 'footer footer'. Assign elements with: grid-area: header. A visual layout plan!

Task

Create grid-template-areas: 'header header header' 'nav main aside' 'footer footer footer'. Assign: .header { grid-area: header }, etc. You have a temple plan with a vestibule, main nave, and chapels!