Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

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.
  1. 010When do you reach for flexbox, and when for grid?Coreeasy
  2. 020How does flexbox size items — flex-grow, flex-shrink, and flex-basis?Corehard
  3. 030Why won't a flex or grid item shrink below its content, and what does min-width: 0 fix?medium
  4. 040How do justify-*, align-*, and place-* work in flexbox and grid?medium
  5. 050How do grid tracks size — fr, minmax(), and auto-fill vs auto-fit?Coremedium
  6. 060How do you place items on a grid — lines, named areas, and auto-placement?medium
  7. 070What problem does subgrid solve?medium