Flex Shrink Distribution Explorer
Understand proportional shrink, minimum-width freezes and remaining overflow in a finite empty-box Flexbox model.
Only synthetic numeric inputs, calculated in this page. No upload, persistence, clipboard API, download or permission request.
JavaScript is unavailable or unsupported. Read the explanation, but no result can be generated.
2. Follow the distribution
No result yet. Try Minimum freeze, then Generate. Inputs alone do not calculate a new result.
Native empty-box preview. Scroll inside the frame; labels stay outside to avoid changing intrinsic widths.
External item legend
Decimals marked ≈ are rounded to two places. Exact fractions decide signs and iteration branches.
| Item | Basis / shrink / minimum | H = max(basis, minimum) | Initial freeze reason | Used width ≈ / exact |
|---|
Shrink rounds
Use N empty direct child blocks with class=item inside class=flex-demo, with no other children or author CSS. Output keeps the requested values; it does not force calculated widths. Other content or cascade can change behavior.
Select CSS, then use your operating system’s Copy command. Nothing is copied automatically.
A deliberately small model
3–6 empty, non-replaced boxes; horizontal-tb/ltr, row/nowrap, grow 0, explicit px basis/minimum, content-box and zero margin/padding/border/gap. No automatic minimum, intrinsic content, wrapping, percentages or full-browser simulation.