01
Flexbox and Grid
The models of a flexbox that distributes on a single axis and a grid that defines lines on two axes; the arithmetic of the flexing calculation, automatic placement rules, and the criterion for choosing between the two models.
- 01 The Flexbox Model Establishing a flex formatting context, deriving the main and cross axis from the direction declaration, distributing free space on the main axis, and alignment on the cross axis.
- 02 Flexing Properties Where an item's base size comes from, how positive free space is divided by growth factors, how negative free space is shared with scaled shrink factors, and the freezing of items that hit a minimum size.
- 03 The Grid Model Establishing a grid formatting context, the distinction between track and line, the fractional unit dividing free space, the hidden lower bound the min-content size places on a share, and naming areas.
- 04 Grid Placement Explicit placement of items by line number, the cursor rule of the auto-placement algorithm, the difference between sparse and dense modes, the formation of implicit tracks, and the separation of visual order from document order.
- 05 Choosing Between Grid and Flexbox Which question each of the two layout models answers, the computed difference in last-row behavior, the cost a spread request creates in flexbox, and the nested use of the two models together.
- 06 Multi-Column Layout Splitting a text flow into columns, resolving column-count and column-width declarations together, the balancing rule, break control, and the cases multi-column layout is not suited to.