Justify Content — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the Justify Content 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
Centre along the main axis
easy10 minCentre the items horizontally.
- 2
Push items apart
easy10 minUse space-between.
- 3
Even spacing around
easy10 minUse space-around.
- 4
Align to the end
easy10 minPush all items to the end of the row.
- 5
Distribute evenly
medium10 minUse space-evenly so all gaps are equal.
Find the bug(5)
- 1
Fix align-items used for the main axis
easy8 minHorizontal alignment in a row uses justify-content.
- 2
Fix the misspelled value
easy8 minThe value is space-between, not space-beetwen.
- 3
Fix the missing hyphen
easy8 minThe value needs a hyphen: flex-end.
- 4
Fix the property on the items
easy8 minjustify-content belongs on the container.
- 5
Fix the wrong property name
easy8 minThe property is justify-content, not justify.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace