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
display: flexflex-direction:row,row-reverse,column,column-reversejustify-content:flex-start,flex-end,center,space-between,space-around,space-evenlyalign-items:stretch,flex-start,flex-end,center,baselinegapflex-wrap:nowrap,wrap,wrap-reversealign-content:normal,stretch,flex-start,flex-end,center,space-between,space-around,space-evenly
Flex item properties
flex-grow: unitless numbers zero or greaterflex-shrink: unitless numbers zero or greaterflex-basis:auto,content,0, or an allowed length/percentageflex: shorthand for grow, shrink, and basisalign-self:auto,stretch,flex-start,flex-end,center,baselineorder: positive, zero, or negative integers
Learning rules
- Flex properties affect direct children of a flex container.
- Wrapping creates multiple flex lines only when items do not fit.
flex-basissupplies an item’s starting main size before free space is distributed.flex-growdivides positive free space using relative factors.flex-shrinkhelps remove negative free space; content and minimum sizes can still limit shrinking.- Read
flex: 1 1 14remas grow 1, shrink 1, basis 14rem. align-selfoverridesalign-itemsfor one item.align-contentdistributes multiple flex lines and needs spare cross-axis space; it does not align items within a line.orderchanges visual placement only. Keep DOM reading and keyboard order logical.
Not allowed
- JavaScript
- Typography/background-presentation tools introduced in Phase 6 (
font-family,font-style,@font-face,background-size) - Positioning and stacking tools introduced in Phase 7
- Media queries and inline styles
- Any HTML tag or CSS property not inherited or listed above
Pages
01-playground.html— axes, justification, alignment, direction, and gap02-navbar.html— practical navigation alignment03-cards.html— card row and item alignment04-split.html— split content alignment05-stack.html— column layouts06-wrapping.html— nowrap, wrap, and wrap-reverse07-flexible-sizing.html— basis, grow, shrink, and shorthand08-item-line-alignment.html— align-self versus align-content09-order.html— visual order and source-order accessibility
Rules to lean on
Rules 7–10, 42, 72–80, and 81–88, plus the Phase 5 sizing, unit, overflow, contrast, and accessibility rules.