CSS Dojo道場 · practice
All levels

Flexible columns with fr

Level 2 of 10

Your goal

Split the 400px grid into three columns in a 1 : 2 : 1 ratio using fr units: 100px, 200px, 100px.

Must usegrid-template-columns
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.