← Quiz: Flexbox and Grid: all 10 questions
Quiz: Flexbox and Grid · Question 2 of 10
Which property vertically centres items in a flex ROW?
Which property vertically centres items in a flex ROW?
- A.justify-content: center
- B.align-items: center
- C.text-align: center
- D.vertical-align: middle
Answer & explanation
Correct answer: align-items: center
In a row, the cross axis is vertical — align-items controls it.
Can you get the rest right without peeking?
Take the timed Quiz: Flexbox and Grid quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →