Coding task · HTML and CSS course · Module 5: Responsiveness

Named CSS Grid areas

Named CSS Grid areas are a powerful tool for building responsive layouts. Instead of defining positions numerically, you give areas semantic names like 'header', 'main', 'sidebar'. It's like a map of an Egyptian tomb - each room has its own name and place.

Task

Complete the CSS: add grid-template-columns and grid-template-areas properties for the mobile view (1 column), then in a media query (min-width: 768px) set a 2-column layout with sidebar and main side by side.