← Activities Hub

πŸ“¦ 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

1
2
3
4
5

β‘‘ 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.

Boxes 5

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

β‘£ Keep practising