Grid Placement — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the Grid Placement 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
Span two columns
easy10 minMake every cell span two columns.
- 2
Start at a specific line
easy10 minPlace the cells starting at column line 2.
- 3
Span two rows
easy10 minMake every cell span two rows.
- 4
Place with start and end
easy10 minPlace cells from column line 1 to line 3.
- 5
Align one item
medium10 minUse justify-self to push cells to the end of their track.
Find the bug(5)
- 1
Fix the missing span keyword
easy8 minSpanning tracks needs the span keyword.
- 2
Fix the wrong axis
easy8 minThe span was applied to rows instead of columns.
- 3
Fix the placement on the container
easy8 mingrid-column applies to items, not the container.
- 4
Fix the wrong separator
easy8 minA start/end range uses a slash.
- 5
Fix justify-items used on an item
easy8 minAn individual item uses justify-self.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace