overflow

The CSS property that decides what happens to content that does not fit in its box: show it, clip it or scroll it.

In more detail

overflow: hidden on an ancestor clips any overlay rendered inside it. The same property on document.body is used to stop the page scrolling while a modal is open.

Related terms

Taught in

References