What is the overflow property in CSS?
The CSS overflow property specifies what should happen if the content inside a container cannot fit completely inside it. It can take four different values:
-
Visible: Displays the overflowing content without any modifications – this is the default value of the overflow property.
-
Hidden: Hides the overflowing content.
-
Scroll: Adds vertical and horizontal scroll bars to see the overflowing (hidden) content. On some web browsers, a disabled scroll bar will be displayed if the content does not overflow.
-
Auto: Adds scroll bars, but only if the content overflows.
Free Resources
Copyright ©2026 Educative, Inc. All rights reserved