Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

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.
  1. 010Explain the CSS box model and what box-sizing: border-box changes.Coreeasy
  2. 020What does display actually set — outer and inner display types?medium
  3. 030What is a block formatting context, and what creates one?Coremedium
  4. 040When do vertical margins collapse, and how do you stop it?medium
  5. 050How are inline boxes laid out — line boxes, line-height, and vertical-align?hard
  6. 060What does overflow do, and how is overflow: clip different from hidden?medium
  7. 070How do floats and clear work, and where are they still the right tool?easy
  8. 080What are min-content, max-content, and fit-content?medium