Overflow Handling
The CSS overflow
property specifies how to handle content that extends beyond an element's border.
Key Values of Overflow
The Overflow property can have the following values:
-
visible: The default value where content is displayed beyond the element's border
-
hidden: Content that extends beyond the border is not visible
-
scroll: Scrollbars are always displayed, and content that extends beyond the border can be scrolled
-
auto: Scrollbars are displayed only if content extends beyond the border
Please follow the emphasized parts in the code to input.
Want to learn more?
Join CodeFriends Plus membership or enroll in a course to start your journey.