Flexbox interview questions

24 Flexbox questions from the CSS bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Sign up free to see every answer with its explanation and ask the AI tutor.

Practice Flexbox free

1. What is justify-content?

Junior
  1. A.the property overriding cross-axis alignment for a single item rather than the whole container
  2. B.the factor controlling how much a flex item expands to fill remaining free space relative to siblings
  3. C.the flex property that aligns items along the main axis
  4. D.the flex property that aligns items along the cross axis

Answer + AI explanation with a free account

2. Which term means: "the flex property that aligns items along the main axis"?

Junior
  1. A.flex-basis
  2. B.justify-content
  3. C.flex-grow
  4. D.flex-direction

Answer + AI explanation with a free account

3. Which statement is correct?

Junior
  1. A.justify-content — the property setting whether the main axis runs horizontally as a row or vertically as a column
  2. B.justify-content — the flex property that aligns items along the cross axis
  3. C.justify-content — the flex property that aligns items along the main axis
  4. D.justify-content — the property setting the initial main-size of a flex item before growing or shrinking is applied

Answer + AI explanation with a free account

4. What is align-items?

Junior
  1. A.the factor controlling how much a flex item expands to fill remaining free space relative to siblings
  2. B.the flex property that aligns items along the cross axis
  3. C.the property allowing items to flow onto multiple lines when they exceed the container width
  4. D.the property setting the initial main-size of a flex item before growing or shrinking is applied

Answer + AI explanation with a free account

5. Which term means: "the flex property that aligns items along the cross axis"?

Junior
  1. A.align-items
  2. B.flex-basis
  3. C.align-self
  4. D.justify-content

Answer + AI explanation with a free account

6. Which statement is correct?

Junior
  1. A.align-items — the factor controlling how much a flex item contracts when there is not enough space
  2. B.align-items — the flex property that aligns items along the cross axis
  3. C.align-items — the factor controlling how much a flex item expands to fill remaining free space relative to siblings
  4. D.align-items — the flex property that aligns items along the main axis

Answer + AI explanation with a free account

7. What is flex-grow?

Mid
  1. A.the factor controlling how much a flex item contracts when there is not enough space
  2. B.the factor controlling how much a flex item expands to fill remaining free space relative to siblings
  3. C.the property setting whether the main axis runs horizontally as a row or vertically as a column
  4. D.the flex property that aligns items along the cross axis

Answer + AI explanation with a free account

8. Which term means: "the factor controlling how much a flex item expands to fill remaining free space relative to siblings"?

Mid
  1. A.flex-direction
  2. B.justify-content
  3. C.flex-grow
  4. D.align-self

Answer + AI explanation with a free account

9. Which statement is correct?

Mid
  1. A.flex-grow — the factor controlling how much a flex item contracts when there is not enough space
  2. B.flex-grow — the flex property that aligns items along the cross axis
  3. C.flex-grow — the flex property that aligns items along the main axis
  4. D.flex-grow — the factor controlling how much a flex item expands to fill remaining free space relative to siblings

Answer + AI explanation with a free account

10. What is flex-shrink?

Mid
  1. A.the flex property that aligns items along the main axis
  2. B.the flex property that aligns items along the cross axis
  3. C.the factor controlling how much a flex item contracts when there is not enough space
  4. D.the property setting whether the main axis runs horizontally as a row or vertically as a column

Answer + AI explanation with a free account

11. Which term means: "the factor controlling how much a flex item contracts when there is not enough space"?

Mid
  1. A.align-items
  2. B.flex-direction
  3. C.flex-shrink
  4. D.flex-basis

Answer + AI explanation with a free account

12. Which statement is correct?

Mid
  1. A.flex-shrink — the factor controlling how much a flex item contracts when there is not enough space
  2. B.flex-shrink — the property overriding cross-axis alignment for a single item rather than the whole container
  3. C.flex-shrink — the flex property that aligns items along the cross axis
  4. D.flex-shrink — the property setting the initial main-size of a flex item before growing or shrinking is applied

Answer + AI explanation with a free account

13. What is flex-basis?

Mid
  1. A.the factor controlling how much a flex item contracts when there is not enough space
  2. B.the property setting the initial main-size of a flex item before growing or shrinking is applied
  3. C.the property setting whether the main axis runs horizontally as a row or vertically as a column
  4. D.the flex property that aligns items along the main axis

Answer + AI explanation with a free account

14. Which term means: "the property setting the initial main-size of a flex item before growing or shrinking is applied"?

Mid
  1. A.align-items
  2. B.flex-shrink
  3. C.align-self
  4. D.flex-basis

Answer + AI explanation with a free account

15. Which statement is correct?

Mid
  1. A.flex-basis — the property allowing items to flow onto multiple lines when they exceed the container width
  2. B.flex-basis — the factor controlling how much a flex item expands to fill remaining free space relative to siblings
  3. C.flex-basis — the property setting the initial main-size of a flex item before growing or shrinking is applied
  4. D.flex-basis — the property setting whether the main axis runs horizontally as a row or vertically as a column

Answer + AI explanation with a free account

16. What is flex-direction?

Junior
  1. A.the property allowing items to flow onto multiple lines when they exceed the container width
  2. B.the property setting whether the main axis runs horizontally as a row or vertically as a column
  3. C.the property overriding cross-axis alignment for a single item rather than the whole container
  4. D.the factor controlling how much a flex item expands to fill remaining free space relative to siblings

Answer + AI explanation with a free account

17. Which term means: "the property setting whether the main axis runs horizontally as a row or vertically as a column"?

Junior
  1. A.flex-grow
  2. B.align-items
  3. C.flex-direction
  4. D.justify-content

Answer + AI explanation with a free account

18. Which statement is correct?

Junior
  1. A.flex-direction — the flex property that aligns items along the cross axis
  2. B.flex-direction — the property setting the initial main-size of a flex item before growing or shrinking is applied
  3. C.flex-direction — the flex property that aligns items along the main axis
  4. D.flex-direction — the property setting whether the main axis runs horizontally as a row or vertically as a column

Answer + AI explanation with a free account

19. What is align-self?

Mid
  1. A.the property allowing items to flow onto multiple lines when they exceed the container width
  2. B.the property overriding cross-axis alignment for a single item rather than the whole container
  3. C.the factor controlling how much a flex item contracts when there is not enough space
  4. D.the property setting the initial main-size of a flex item before growing or shrinking is applied

Answer + AI explanation with a free account

20. Which term means: "the property overriding cross-axis alignment for a single item rather than the whole container"?

Mid
  1. A.align-items
  2. B.align-self
  3. C.flex-grow
  4. D.flex-direction

Answer + AI explanation with a free account

21. Which statement is correct?

Mid
  1. A.align-self — the property setting the initial main-size of a flex item before growing or shrinking is applied
  2. B.align-self — the property overriding cross-axis alignment for a single item rather than the whole container
  3. C.align-self — the factor controlling how much a flex item contracts when there is not enough space
  4. D.align-self — the flex property that aligns items along the main axis

Answer + AI explanation with a free account

22. What is flex-wrap?

Senior
  1. A.the property setting whether the main axis runs horizontally as a row or vertically as a column
  2. B.the property allowing items to flow onto multiple lines when they exceed the container width
  3. C.the property overriding cross-axis alignment for a single item rather than the whole container
  4. D.the property setting the initial main-size of a flex item before growing or shrinking is applied

Answer + AI explanation with a free account

23. Which term means: "the property allowing items to flow onto multiple lines when they exceed the container width"?

Senior
  1. A.flex-basis
  2. B.flex-direction
  3. C.flex-wrap
  4. D.flex-shrink

Answer + AI explanation with a free account

24. Which statement is correct?

Senior
  1. A.flex-wrap — the flex property that aligns items along the main axis
  2. B.flex-wrap — the property setting the initial main-size of a flex item before growing or shrinking is applied
  3. C.flex-wrap — the property allowing items to flow onto multiple lines when they exceed the container width
  4. D.flex-wrap — the flex property that aligns items along the cross axis

Answer + AI explanation with a free account

Free to start

Answers, AI explanations, and a free readiness check

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.

Practice Flexbox free
24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers