Grid Areas — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the Grid Areas lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Name a single row of areas
easy10 minDefine one row with three named areas.
- 2
Define two rows of areas
easy10 minDefine two rows: header spanning, then two cells.
- 3
Assign an item to an area
easy10 minPut every cell in the area named a.
- 4
Flow items densely
easy10 minSet grid-auto-flow to row dense.
- 5
Combine areas and gap
medium10 minDefine named areas with a 12px gap.
Find the bug(5)
- 1
Fix the unquoted area row
easy8 minEach row of areas must be a quoted string.
- 2
Fix the uneven area rows
easy8 minEvery row must declare the same number of columns.
- 3
Fix the wrong property for items
easy8 minAn item is placed with grid-area.
- 4
Fix the dense keyword
easy8 minThe value is "row dense", written in that order.
- 5
Fix the comma between area rows
easy8 minArea rows are separated by whitespace, not commas.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace