Chapter 05
Flexbox and grid
The two layout modes most interviews probe: how flexbox distributes space along a line, how grid sizes tracks and places items, and the alignment model they share.- 010When do you reach for flexbox, and when for grid?Coreeasy
- 020How does flexbox size items —
flex-grow,flex-shrink, andflex-basis?Corehard - 030Why won't a flex or grid item shrink below its content, and what does
min-width: 0fix?medium - 040How do
justify-*,align-*, andplace-*work in flexbox and grid?medium - 050How do grid tracks size —
fr,minmax(), andauto-fillvsauto-fit?Coremedium - 060How do you place items on a grid — lines, named areas, and auto-placement?medium
- 070What problem does
subgridsolve?medium