CSS Grid Columns — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the CSS Grid Columns 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 two fixed columns
easy10 minCreate columns of 100px and 200px.
- 2
Define three fixed columns
easy10 minCreate three 120px columns.
- 3
Use repeat with fixed tracks
easy10 minUse repeat() to make three 90px columns.
- 4
Size implicit columns
easy10 minFlow into columns and size the implicit ones at 80px.
- 5
Mix column widths
medium10 minCreate a 150px column followed by a 50px one.
Find the bug(5)
- 1
Fix the comma-separated tracks
easy8 minTrack sizes are separated by spaces, not commas.
- 2
Fix the wrong property
easy8 minThe property is grid-template-columns.
- 3
Fix the repeat syntax
easy8 minrepeat() takes a count then a size, separated by a comma.
- 4
Fix the missing unit
easy8 minA bare number is not a valid track size.
- 5
Fix rows used instead of columns
easy8 minThe tracks were declared on the wrong axis.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace