Command Palette

Search for a command to run...

Hectal
Phase 2: The Cascade, Specificity and Inheritance
CSS · Exercise 6 of 6 Previous
Intermediate

Build themed pricing cards

Style the two pricing cards using the cascade and inheritance, with no !important:

1) Cards have dark gray text #1f2937 that everything inside inherits. 2) The .featured card has a #1f2937 background and white text. 3) Links in a card take the card's text colour. 4) Buttons use the card's font and text colour, with a transparent background and a 2px border in the current text colour.

What Check tests

  1. Basic card text is #1f2937
  2. The featured card is dark with white text
  3. The basic card stays white
  4. Links take their card's text colour
  5. Buttons use the card's font and colour, with a transparent background
  6. Button borders are 2px in the text colour
  7. No !important is used

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.