Search IOCombats

Search challenges, guides, questions and articles

Flexbox Interview Questions

6 curated flexbox interview questions with detailed answers and examples.

← Browse all interview questions

Walk through the flex sizing algorithm step by step, from flex-basis as the starting size to the proportional distribution of free or negative space.

intermediateflexboxcssflexboxflex-grow

Diagnose the automatic minimum size on flex items, why min-width: auto blocks shrinking, and the overrides that let a flexible region actually flex.

advancedflexboxcssflexboxflex-shrink

Learn how flex-direction defines the two axes and why every alignment property in Flexbox is meaningless until you know which axis it targets.

beginnerflexboxcssflexboxlayout

Compare the two core Flexbox alignment properties by axis, by what they distribute, and by how their values differ.

beginnerflexboxcssflexboxjustify-content

Centre with Flexbox in two declarations, then compare Grid place-items and absolute positioning with transform on tradeoffs that actually matter.

beginnerflexboxcssflexboxcentering

Compare the one-dimensional and two-dimensional layout models, then apply a concrete decision rule based on who controls the sizing.

beginnergridcssgridflexbox