CSS Dojo道場 · practice
All levels

Growing to fill the space

Level 5 of 11

Your goal

Let the items grow to fill the 400px container, with B taking twice as much of the 220px of spare room as A and C. Final widths: A 115px, B 170px, C 115px.

Must useflex-grow
Not allowedwidthflex-basis
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.