Skip to main content

Practice · 1 of 2

Debug: The Losing Rule

CHALLENGE
Difficulty: beginner+25 XP

A developer complains: 'my .price color rule is ignored!'. The stylesheet has a more specific rule that also sets color on the same element. Find the fight and fix it the *right* way — make the class rule win by lowering the other rule's specificity or scoping it, NOT with !important.

Back to lesson: Practice: Selectors, Classes & the Cascade — Practice