CSS Dojo道場 · practice
All levels

Aligning across the cross axis

Level 4 of 11

Your goal

Centre the three items vertically inside the 120px-tall container. A is 40px tall, B is 80px and C is 60px.

Must usealign-items
Not allowedmargin
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.