CSS box model: content, overflow, and extrinsic versus intrinsic sizing
Answer: The box model is a core foundation of CSS.
Content and sizing
Display, set dimensions, and the content inside a box all change how that box behaves.
By default the content still contributes to the used size.
Extrinsic sizing lets you set the size yourself. Intrinsic sizing lets the browser size the box from its content.
A box with a specified width is sized extrinsically, so it constrains its children.
Overflow
Overflow happens when content is too big for the box it is in.
The overflow property is how you control that spilled content.
min-content sizes the box to the intrinsic minimum width of its content.
An intrinsically sized box grows with its content, so overflow is less common.
See also
Claims
- id: C1 claim: The box model is a core foundation of CSS. source: S1 evidence: "The box model is a core foundation of CSS"
- id: C2 claim: Content affects the size of the box by default. source: S1 evidence: "content affects the size of the box by default"
- id: C3 claim: The overflow property manages overflow content. source: S1 evidence: "handles overflow content using the overflow property"
- id: C4 claim: The box model is a core foundation of how CSS lays out boxes. source: S2 evidence: "core foundation of CSS"
Sources
- [S1] CSS Box Model. web.dev. https://web.dev/learn/css/box-model . License: CC-BY-4.0. Accessed 2026-11-24.
- [S2] Box Model (source). web.dev. https://raw.githubusercontent.com/GoogleChrome/web.dev/main/src/site/content/en/learn/css/box-model/index.md . License: CC-BY-3.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, CSS Box Model; web.dev, Box Model (source). CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-3.0 (https://raw.githubusercontent.com/GoogleChrome/web.dev/main/LICENSE). Copyright Google LLC. Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: web.dev, CSS Box Model; web.dev, Box Model (source). CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-3.0 (https://raw.githubusercontent.com/GoogleChrome/web.dev/main/LICENSE). Copyright Google LLC. Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License.
Cite this
iinventedlight. 2026. "CSS box model: content, overflow, and extrinsic versus intrinsic sizing." iinventedlight Library, iil:note:6pw2pjf1, version of 2026-11-24. https://iinventedlight.com/library/notes/css-box-model/. License: CC-BY-4.0.
@misc{iil_note_6pw2pjf1,
author = {{iinventedlight}},
title = {{CSS box model: content, overflow, and extrinsic versus intrinsic sizing}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/css-box-model/},
note = {Permanent ID iil:note:6pw2pjf1. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- css-box-model.schema.json (schema; CC-BY-4.0)
- css-box-model.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/css-box-model.md.