The CSS overflow property controls what happens when content overflows an element's box. It can be set to visible, hidden, scroll, or auto.
Using overflow: hidden; hides any content that overflows the element's box:
.overflow-hidden {
overflow: hidden;
background-color: #e0f0e0;
}
Using overflow: scroll; adds scrollbars to the element if the content overflows:
.overflow-scroll {
overflow: scroll;
background-color: #f0e0e0;
}
Using overflow: auto; adds scrollbars only if needed:
.overflow-auto {
overflow: auto;
background-color: #e0e0f0;
}