CSS Dojo道場 · practice
All levels

The containing block

Level 3 of 10

Your goal

The 300 × 200 parent sits 40px in from the stage's top and left. Make it the containing block, then absolutely position the child 20px from the parent's top and left (60, 60 on the stage).

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