← TechnologyThe essentials of

overflow: what happens to the text outside the box

Publisher: ResumeMaker • 1 source

Published: 22 Oct 2026 13:13 · Updated: 22 Oct 2026 13:13

AI source check: 21 Oct 2026 10:36. This is not editorial approval.

In a few sentences

In brief

Hide and scroll are different solutions for content that doesn't fit.

Useful to know

overflow manages content that goes beyond the element box. In visible, it can be seen from the outside, in hidden, it is cropped, and auto allows scrolling when necessary. The property matters when dimensions or other constraints create overflow. [1]

Imagine a panel with height: 180px; and a long list . overflow: auto; allows you to reach the last lines by scrolling . overflow: hidden; can hide them from view without making the list shorter. Therefore, hiding is not a solution for missing navigation to the rest of the content.

overflow-x and overflow-y. can be set for problem only Before adding a hide to the entire page, find out which item goes beyond it: a long address, a table, or an overly wide photo require different changes.

Sources

For further detail and to check the information:

  1. [1] MDN — overflow ↗