← All notes

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

Sources

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

Permanent ID: iil:note:6pw2pjf1

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.},
}

Markdown

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.

All artifact files (JSON index)

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.