HTML & CSS · Junior · Question 27 of 75

Along which axis does justify-content align items in a flex container?

Explanation

justify-content works on the main axis, align-items on the cross axis. With flex-direction: row the main axis is horizontal; with column it's vertical, and justify-content aligns vertically. So "always horizontally" is wrong.

Further reading

Problem with a question

HTML & CSS · Junior · question 27

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz