1. Home
  2. Computer Science MCQs
  3. Cascading Style Sheets - CSS
  4. Which property creates a flex-container?

Added 14 Sep 2025

Which property creates a flex-container?

  1. position:flex
  2. flex:flex
  3. display:flex Correct answer
  4. container:flex

Correct answer

C. display:flex

13 views

MCQSEXAM

Explanation

display:flex turns element into flexbox.

Reference

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_flexible_box_layout

Doubts & discussion

Not sure why the answer is C? 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