Flexbox Interview Questions
6 curated flexbox interview questions with detailed answers and examples.
← Browse all interview questionsWalk through the flex sizing algorithm step by step, from flex-basis as the starting size to the proportional distribution of free or negative space.
Diagnose the automatic minimum size on flex items, why min-width: auto blocks shrinking, and the overrides that let a flexible region actually flex.
Learn how flex-direction defines the two axes and why every alignment property in Flexbox is meaningless until you know which axis it targets.
Compare the two core Flexbox alignment properties by axis, by what they distribute, and by how their values differ.
Centre with Flexbox in two declarations, then compare Grid place-items and absolute positioning with transform on tradeoffs that actually matter.
Compare the one-dimensional and two-dimensional layout models, then apply a concrete decision rule based on who controls the sizing.