- Home
- /
- Tutorials
- /
- CSS Tutorial
- /
- CSS Overflow
CSS Layout
CSS Overflow
The CSS Overflow property controls what happens when content is too large to fit inside an element.
When the content exceeds an element's width or height, overflow determines whether the content should be: The supporting concepts are explained in Scroll Snap and Scroll Animations.
- Visible
- Hidden
- Scrollable
- Automatically scrollable when needed
This property is especially useful for:
- Fixed-size containers
- Scrollable content areas
- Tables and code blocks
- Preventing layout breakage
Syntax
CSS Overflow Syntax
css
selector {
overflow: value;
}