CSS
CSS OverflowCSS Overflow
CSS overflow handles content that spills out of its container.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
CSS controls what happens when a box contains too much text or media. By default, content visibly spills out. Developers can hide this extra content or add scrollbars to keep the layout neat.
Example
Example
Key Points
- The `visible` value shows content outside the box.
- The `hidden` value clips overflowing content completely.
- The `scroll` value adds permanent scrollbars.
- The `auto` value adds scrollbars only when needed.