The overflow is trimmed and the remaining text is hiddenwhen using the hidden value:
———box banavvu——–
Example
div {
overflow: hidden;
}
overflow: scroll
After the overflow is clipped and the value is set to scroll, a scrollbar is provided to allow for scrolling inside the box. Be aware that even if you don’t need it, this will add a scrollbar that is both horizontal and vertical:
———box banavvu——–
Example
div {
overflow: scroll;
}
overflow: auto
Similar to scroll, the autovalue adds scrollbars only when required:
———box banavvu——–
Example
div {
overflow: auto;
}
overflow-x and overflow-y
The properties overflow-x and overflow-y indicate whether to modify the content overflow only in a horizontal or vertical direction, or both:
overflow-x specifies what to do with the left/right edges of the content.
overflow-y specifies what to do with the top/bottom edges of the content.