Align Items — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the Align Items 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 on the cross axis
easy10 minCentre the items vertically in a row.
- 2
Align to the start
easy10 minPull items to the top of the row.
- 3
Align to the end
easy10 minPush items to the bottom of the row.
- 4
Stretch the items
easy10 minMake items fill the cross axis.
- 5
Centre both axes
medium10 minCentre horizontally and vertically at once.
Find the bug(5)
- 1
Fix justify-content used for the cross axis
easy8 minVertical alignment in a row uses align-items.
- 2
Fix the misspelled property
easy8 minThe property is align-items, not align-item.
- 3
Fix the missing hyphen
easy8 minThe value needs a hyphen: flex-start.
- 4
Fix align-self used on the container
easy8 minThe container property is align-items.
- 5
Fix the invalid value
easy8 min"middle" is not a flexbox alignment value.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace