CSS Grid Rows — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the CSS Grid Rows 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
Define three rows
easy10 minCreate rows of 60px, 80px and 100px.
- 2
Use repeat for rows
easy10 minCreate three 70px rows with repeat().
- 3
Size implicit rows
easy10 minLet rows be created automatically at 90px each.
- 4
Add a row gap
easy10 minGive the rows a 24px gap.
- 5
Combine rows and auto rows
medium10 minDeclare one 50px row and size the rest at 75px.
Find the bug(5)
- 1
Fix columns used instead of rows
easy8 minThe tracks were declared on the wrong axis.
- 2
Fix the wrong property
easy8 minThe property is grid-auto-rows.
- 3
Fix the comma-separated rows
easy8 minTrack sizes are space separated.
- 4
Fix the gap on the wrong axis
easy8 minA gap between rows is row-gap.
- 5
Fix the repeat count
easy8 minThere are three items, so three rows are needed.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace