CodeAgeBy Sitezack
Advanced CSS for Makers 🎨Modern, responsive layout0 XP
Chapter progress0/5

Lesson 5 of 5

Project: a responsive page

A real responsive page combines everything: a header in flex, a grid of cards, and a media query for mobile.

The goal: a layout that fits on a large screen AND rearranges cleanly on a phone.

.nav { display: flex; justify-content: space-between; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
}

🎯 Your goal

Compose the page: 1) .nav in display: flex with justify-content: space-between; 2) .cards in display: grid with grid-template-columns: repeat(3, 1fr); 3) a media query @media (max-width: 600px) that switches .cards to a single column (grid-template-columns: 1fr).

PRO lesson

This advanced chapter is part of CodeAge PRO. Unlock it to keep your adventure going.

Discover PRO