Understand the web. Build it yourself.

All repair missions / Mission 06

Fix this page

Make room for a long word

Keep an unbroken project name inside a narrow card.

Your goal

Keep the original project name readable inside a 240px card, at 16px or larger. Wrap it without clipping, scrolling or scaling.

Read one possible solution
HTML · EXAMPLE
<article class="text-card"><h2>Project notes</h2><p>MyExtraordinarilyLongUnbrokenProjectNameForTheWeb</p></article>
CSS · EXAMPLE
.text-card { width: 240px; padding: 16px; box-sizing: border-box; border: 2px solid #80eee0; overflow-wrap: anywhere; }

overflow-wrap: anywhere permits a break within a long token when needed. It preserves the complete text.

Starting code and all hints
HTML · EXAMPLE
<article class="text-card"><h2>Project notes</h2><p>MyExtraordinarilyLongUnbrokenProjectNameForTheWeb</p></article>
CSS · EXAMPLE
.text-card { width: 240px; padding: 16px; box-sizing: border-box; border: 2px solid #80eee0; }
  1. The long project name has no natural breaking spaces.
  2. Changing the container width avoids rather than solves this narrow-layout task.
  3. Try overflow-wrap: anywhere on .text-card.

Read the related guide →

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

Next mission →