New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →

#overflow-y

Defines how overflowing content on the vertical axis is displayed.

default overflow-y: visible;

The overflowing content is visible, while the element itself stays at the specified height.

overflow-y: hidden;

The overflowing content is hidden and can not be accessed.

overflow-y: scroll;

The overflowing content is accessible thanks to a vertical scrollbar.

overflow-y: auto;

The browser decides whether to display a vertical scrollbar or not.