Skip to content

Responsive Areas

Named areas are already readable.

Responsive areas are where Grid becomes unfair.

You can rebuild the entire page layout at different breakpoints without touching your HTML.


  1. Define the desktop blueprint
  2. Override the blueprint in a media query
.layout {
display: grid;
grid-template-columns: 14rem 1fr;
grid-template-areas:
'header header'
'sidebar content'
'footer footer';
}
@media (max-width: 48rem) {
.layout {
grid-template-columns: 1fr;
grid-template-areas:
'header'
'content'
'sidebar'
'footer';
}
}

This is the secret sauce:

  • same elements
  • same grid-area names
  • different map

  • Your HTML stays semantic
  • Accessibility stays sane
  • Layout becomes a CSS-only concern

🧪 MiniMo — Responsive Blueprint Switcher

Section titled “🧪 MiniMo — Responsive Blueprint Switcher”

Toggle between desktop, tablet, and mobile blueprints.
Notice: no HTML changes.


Grid areas aren’t just readable.

They’re refactorable.

That’s the difference between “layout” and “layout system.”


📘 Responsive Grid Areas Study Guide (PDF)

📘 Responsive Grid Areas Infographic (PNG)

Infographic explaining CSS Flexbox direction and axes, showing how flex-direction defines the main axis and cross axis, with visual examples for row, row-reverse, column, and column-reverse, and how justify-content and align-items map to each axis.

How are items aligned within an area and how are the spaces between defined.