On this page
overflow
Prev: `aspect-ratio` | Up: box_model | Next: `inline-size`
Rel: box_model, Box Model & Sizing Guide
Ref: MDN Web Docs — overflow
Tags: #public #web #css #properties #box_model #tier/core
Syntax & Overview
overflow: visible | hidden | clip | auto | scroll;
Controls how content larger than the box is clipped or scrolled.
- Initial:
visible| Inherited: No | Animatable: No
Notes & Best Practices
- Prefer
overflow: clipoveroverflow: hiddenwhen you only want visual clipping:hiddencreates a scroll container that breaksposition: stickyon descendants, whereasclipdoes not!
Example
.table-wrap { overflow-x: auto; }
.rounded-frame { border-radius: 12px; overflow: clip; }
Linked from
Related notes
- tuts/css/properties/box_model/aspect-ratio Linked here; links to this page; shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/inline-size Linked here; links to this page; shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model 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
- tuts/css/properties/box_model/box-sizing shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/margin shared tags: #css, #properties, #tier, #web
- tuts/css/properties/box_model/padding shared tags: #css, #properties, #tier, #web
- tuts/css/properties/layout/align-items shared tags: #css, #properties, #tier, #web
- tuts/css/properties/layout/display shared tags: #css, #properties, #tier, #web
- tuts/css/properties/layout/flex shared tags: #css, #properties, #tier, #web