1. Home
  2. Computer Science MCQs
  3. Cascading Style Sheets - CSS
  4. In Flexbox, which property aligns items along the main axis?

Added 2 Nov 2026

In Flexbox, which property aligns items along the main axis?

  1. align-content
  2. justify-content Correct answer
  3. flex-direction
  4. align-items

Correct answer

B. justify-content

12 views

MCQSEXAM

Explanation

justify-content distributes items along the main axis, which is horizontal by default. align-items handles the cross axis, and flex-direction sets which axis is the main one.

Reference

Asked in: NTS, Web Developer Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cascading Style Sheets - CSS MCQs

Practise all Cascading Style Sheets - CSS MCQs

Similar MCQs