Ctrl K
Frontend · Mid-level · Theory

How do you choose between Flexbox and CSS Grid for a particular layout? Give examples of where each one fits better.

~4 min by voice

How to approach it

This checks whether you understand the fundamental difference between the layout models (one-dimensional and content-driven versus two-dimensional and structure-driven) and can deliberately choose and combine them, rather than using flex for everything out of habit.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsHow do you organize CSS in a large application that several teams work on? What approaches have you tried, and what have you abandoned? SeniorWhen would you choose Flexbox, and when would you choose Grid? JuniorTell me about the CSS box model. What does the box-sizing property change? Junior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~4 min