What is the overflow property?
The CSS overflow property controls what happens when an element's content exceeds the dimensions of its container. It determines whether overflowing content is visible, hidden, or reachable through scrollbars. It is a fundamental property for managing layouts and interface components.



























































































































Unlimited requests, fast results
Submit as many briefs as you need. Our plans allow you to manage a continuous flow of design requests, without limits and without friction, and at an economic cost.
The overflow values
visible (the default) lets content spill out. hidden masks everything that overflows — widely used with border-radius to crop shapes. scroll always shows scrollbars. auto shows them only when needed, which makes it the most common choice in practice.
Overflow-x and overflow-y
Horizontal and vertical overflow can be controlled independently with overflow-x and overflow-y. That is how you build a horizontal carousel (overflow-x: auto) while hiding vertical overflow, for example.



























































































































Unlimited requests, fast results
Submit as many briefs as you need. Our plans allow you to manage a continuous flow of design requests, without limits and without friction, and at an economic cost.
Conclusion
Overflow is a discreet but crucial CSS property for clean, functional interfaces. Mastering it prevents unwanted visual overflow and enables elegant scrollable components.
Key takeaways
- Controls what happens to content that overflows its container
- 4 values: visible, hidden, scroll, auto
- overflow-x and overflow-y for directional control
- hidden + border-radius = image cropping
- auto is the recommended value for scrollable containers
Unlimited requests, fast results
Submit as many briefs as you like. Our plans let you manage a continuous flow of design requests, without limits or friction, and at an economical price.