CSS Dojo道場 · practice
All levels

Boss: the contained card

Level 9 of 9

Your goal

Use contain: strict and contain-intrinsic-size on the 240px-wide .card so that: the card is exactly 240 × 200; the title's 20px top margin stays inside the card; and the absolutely positioned badge anchors to the card's top-left corner instead of the stage's.

Must usecontaincontain-intrinsic-size
Elements

Hover one to find it on the stage. Click it, or put your cursor inside its CSS rule, to focus on just that element.

target content boxtarget outer edge (green = matched, red = not yet)your element (hovered or focused)
Feedback updates as you type, and your CSS is saved in this browser. Exact target numbers are in the Target panel.