Understand the web. Build it yourself.

All repair missions / Mission 02

Fix this page

Style the right message

Find why the highlighted message keeps the wrong colour.

Your goal

Make the featured message orange (#ff7700), while the ordinary message stays muted (#b4b1c4). Keep both messages visible.

Read one possible solution
HTML · EXAMPLE
<section>
  <h2>Small details matter</h2>
  <p class="message">An ordinary message.</p>
  <p class="message featured">This one should be orange.</p>
</section>
CSS · EXAMPLE
.message { color: #b4b1c4; }
.message.featured { color: #ff7700; }

The space in .message .featured looks for a descendant. .message.featured matches an element with both classes. A simpler .featured selector works too.

Starting code and all hints
HTML · EXAMPLE
<section>
  <h2>Small details matter</h2>
  <p class="message">An ordinary message.</p>
  <p class="message featured">This one should be orange.</p>
</section>
CSS · EXAMPLE
.message { color: #b4b1c4; }
.message .featured { color: #ff7700; }
  1. Does featured belong to a child element or to the same paragraph?
  2. A space means “find a descendant”. Both classes are on one element here.
  3. Try .message.featured without the space, or target .featured directly.

Read the related guide →

Original missions by Mario V.W.B.R. Obst with AI assistance · October 2026.

Next mission →