Rendered from flexbox/allowed.md

Advanced Flexbox — Allowed

This gauge covers the promoted Flexbox chapter after Phase 5.

Learning goal

Control flex axes, wrapping, free-space distribution, item alignment, line alignment, and visual order without damaging logical source order.

Inherited tools

Everything allowed through ./phase5-allowed.html remains available.

Flex container properties

Flex item properties

Learning rules

  1. Flex properties affect direct children of a flex container.
  2. Wrapping creates multiple flex lines only when items do not fit.
  3. flex-basis supplies an item’s starting main size before free space is distributed.
  4. flex-grow divides positive free space using relative factors.
  5. flex-shrink helps remove negative free space; content and minimum sizes can still limit shrinking.
  6. Read flex: 1 1 14rem as grow 1, shrink 1, basis 14rem.
  7. align-self overrides align-items for one item.
  8. align-content distributes multiple flex lines and needs spare cross-axis space; it does not align items within a line.
  9. order changes visual placement only. Keep DOM reading and keyboard order logical.

Not allowed

Pages

Rules to lean on

Rules 7–10, 42, 72–80, and 81–88, plus the Phase 5 sizing, unit, overflow, contrast, and accessibility rules.