css/properties/box_model
Prev: layout | Up: properties | Next: positioning
Rel: Box Model & Sizing Guide, Cascade & Specificity
Ref: MDN Web Docs — CSS Reference
Tags: #public #web #css #properties #box_model #index
Overview
Element dimensions, padding, borders, margins, aspect ratio, and overflow clipping.
Core (#tier/core)
- `box-sizing` — Determines whether
width/heightinclude padding and borders. - `margin` — Outer spacing outside the border edge; vertical block margins collapse in normal flow.
- `padding` — Inner spacing between content and border (never collapses, never negative).
- `aspect-ratio` — Declares a preferred width-to-height ratio for responsive boxes and media.
- `overflow` — Controls how content larger than the box is clipped or scrolled.
Standard (#tier/standard)
- `inline-size` — Logical equivalent of
widthin horizontal writing modes.
Linked from
- tuts/css/properties
- tuts/css/properties/box_model/aspect-ratio
- tuts/css/properties/box_model/box-sizing
- tuts/css/properties/box_model/inline-size
- tuts/css/properties/box_model/margin
- tuts/css/properties/box_model/overflow
- tuts/css/properties/box_model/padding
- tuts/css/properties/layout
- tuts/css/properties/layout/float
- tuts/css/properties/positioning
Related notes
- tuts/css/properties Linked here; links to this page; shared tags: #css, #index, #properties, #web
- tuts/css/properties/layout Linked here; links to this page; shared tags: #css, #index, #properties, #web
- tuts/css/properties/positioning Linked here; links to this page; shared tags: #css, #index, #properties, #web
- tuts/css/properties/box_model/aspect-ratio Linked here; links to this page; shared tags: #css, #properties, #web
- tuts/css/properties/box_model/box-sizing Linked here; links to this page; shared tags: #css, #properties, #web
- tuts/css/properties/box_model/inline-size Linked here; links to this page; shared tags: #css, #properties, #web
- tuts/css/properties/box_model/margin Linked here; links to this page; shared tags: #css, #properties, #web
- tuts/css/properties/box_model/overflow Linked here; links to this page; shared tags: #css, #properties, #web
- tuts/css/properties/box_model/padding Linked here; links to this page; shared tags: #css, #properties, #web
- tuts/css/properties/box_model_and_sizing Linked here; shared tags: #css, #properties, #web