Chapter 04
Box model and formatting contexts
How CSS turns elements into boxes and lays them out in normal flow: the box model, display types, block and inline formatting, margin collapsing, overflow, floats, and intrinsic sizes.- 010Explain the CSS box model and what
box-sizing: border-boxchanges.Coreeasy - 020What does
displayactually set — outer and inner display types?medium - 030What is a block formatting context, and what creates one?Coremedium
- 040When do vertical margins collapse, and how do you stop it?medium
- 050How are inline boxes laid out — line boxes,
line-height, andvertical-align?hard - 060What does
overflowdo, and how isoverflow: clipdifferent fromhidden?medium - 070How do floats and
clearwork, and where are they still the right tool?easy - 080What are
min-content,max-content, andfit-content?medium