Understand the web. Build it yourself.

All repair missions / Mission 04

Fix this page

Let the navigation wrap

Repair navigation that overflows a narrow screen.

Your goal

Keep all three links visible inside a 240px navigation region. Let the links wrap instead of clipping, scaling or shrinking the words.

Read one possible solution
HTML · EXAMPLE
<nav class="practice-nav"><a href="#home">Home</a><a href="#projects">Projects</a><a href="#contact">Contact</a></nav><h2 id="home">Home</h2><p id="projects">Projects to explore.</p><p id="contact">Contact the author.</p>
CSS · EXAMPLE
.practice-nav { display: flex; flex-wrap: wrap; width: 240px; gap: 24px; }
.practice-nav a { padding: 20px; color: #80eee0; }

Wrapping gives complete links another row when the current row is full. Each link remains usable at its original text size.

Starting code and all hints
HTML · EXAMPLE
<nav class="practice-nav"><a href="#home">Home</a><a href="#projects">Projects</a><a href="#contact">Contact</a></nav><h2 id="home">Home</h2><p id="projects">Projects to explore.</p><p id="contact">Contact the author.</p>
CSS · EXAMPLE
.practice-nav { display: flex; width: 240px; gap: 24px; white-space: nowrap; }
.practice-nav a { padding: 20px; color: #80eee0; }
  1. The combined link widths exceed 240px.
  2. Flex containers do not wrap by default.
  3. Add flex-wrap: wrap to .practice-nav.

Read the related guide →

Original missions by Mario V.W.B.R. Obst with AI assistance · September–November 2026.

Next mission →