π¦ Flexbox Practice
Line it up. Centre it. Space it out.
β Type along
Your trainer types the flex rules live. Watch each layout snap into place! π«° Flexbox always starts with display: flex; on the parent.
1. Center a Div
2. Navbar
3. Responsive Card Row
β‘ Flexbox playground
Click any value and watch the boxes move. The CSS on the right writes itself, so you can copy it straight into your project.
The CSS
β’ π Park the cars
Each car has a numbered bay. Pick the flexbox values that park every car in its own bay. 10 levels, and the last one is a boss! π
π‘ Hint
π Parked!
β£ Keep practising
-
Game β
Flexbox Froggy
The classic: write CSS to get every frog onto its lily pad. 24 levels.
flexboxfroggy.com -
Cheatsheet β
FLEX by Malven
Every flexbox property as a tiny picture. Click one to copy the code.
flexbox.malven.co -
Guide β
A Complete Guide to Flexbox
CSS-Tricksβ famous guide, with a diagram for every property.
css-tricks.com -
Game β
Flexbox Defense
Tower defence where you place the towers with flexbox. 12 levels.
flexboxdefense.com -
Game β
Knights of the Flexbox Table
Flexbox with Tailwind classes. Perfect for when we get to Tailwind!
knightsoftheflexboxtable.com -
Next up β
Grid Garden
From the Flexbox Froggy team: water your carrots with CSS Grid.
cssgridgarden.com