CSS Dojo道場 · practice
All levels

contain: paint clips and anchors

Level 4 of 9

Your goal

The 40 × 40 absolutely positioned child is stuck at the stage's top-left corner. Make .box (200 × 100, placed 40px from the top and left) its containing block with contain: paint, so the child sits at the box's top-left corner (x = 40, y = 40).

Must usecontain
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.