Flexbox alignment
A CSS flexbox property on the container that aligns all flex items along the cross axis (perpendicular to flex-direction). Values: stretch, center, flex-start, flex-end.
What it does: justify-content: center pushes all flex items to the centre of the main axis (horizontally for flex-direction: row). space-between places equal gaps between items only. space-around adds equal gaps on each side of every item, including at the edges. CSS uses American English. The correct value is 'center', not 'centre'. Using 'centre' will be silently ignored.
Common mistakes: CSS declarations require a colon. It should be justify-content: center; not justify-content centre;. 'middle' is not a valid align-items value. Use align-items: center; to centre items on the cross axis.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
align-itemsFill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →