Overflow

noun

say it: “OH-ver-floh” /ˈoʊvərfloʊ/

The CSS property that decides what happens when content is too big for its box: let it spill out, cut it off, or add scrollbars.

What does overflow do?

overflow decides what happens when content is too big for its box: show it anyway, hide it, or add scrollbars.

.chat-messages { height: 300px; overflow-y: auto; }   /* scrolls when full */

In a sentence

  • “The chat box has a set height and overflow: auto, so old messages scroll instead of pushing the page down.”
  • “With overflow: hidden, the long café name is cut off at the card's edge.”

Level: Apprentice · More CSS terms at this level

Updated