CSS Dojo道場 · practice
All levels

Pulling with negative margins

Level 10 of 13

Your goal

Make box B overlap box A. Move B up by 20px, so its top is at y = 40 and it covers the bottom 20px of A, and 40px to the right (x = 40). Both boxes stay 200 × 60.

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

marginborderpaddingcontenttarget 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.