Skip to content

Overflow

Overflow utilities control what happens when content is bigger than its box: overflow-auto scrolls when needed, overflow-hidden clips, overflow-visible lets content spill and overflow-scroll always shows scrollbars. overflow-x-* and overflow-y-* handle each axis separately, ideal for wide tables and side-scrolling rows.

1The four overflow values

overflow-auto, overflow-hidden, overflow-visible and overflow-scroll on boxes of fixed height.

overflow-auto
A flexible team brings customers coming back on any device. A honest dashboard keeps projects moving forward from the very first day. Our education fund lets every detail in view from the very first day. A bright dashboard guides results you can measure for teams of every size.
overflow-hidden
A flexible team brings customers coming back on any device. A honest dashboard keeps projects moving forward from the very first day. Our education fund lets every detail in view from the very first day. A bright dashboard guides results you can measure for teams of every size.
overflow-visible
A flexible team brings customers coming back on any device. A honest dashboard keeps projects moving forward from the very first day. Our education fund lets every detail in view from the very first day. A bright dashboard guides results you can measure for teams of every size.
overflow-scroll
A flexible team brings customers coming back on any device. A honest dashboard keeps projects moving forward from the very first day. Our education fund lets every detail in view from the very first day. A bright dashboard guides results you can measure for teams of every size.

2Horizontal scroll only

overflow-x-auto with flex-nowrap scrolls a row of cards sideways.

Food relief
Education fund
Clean water
Food relief
Disaster response

3Vertical scroll only

overflow-y-auto and a max-height make a scrolling list.

  • Lea Carter
  • Hana Moreau
  • Ruby Moreau
  • Hana Delgado
  • Luna Morgan
  • Arjun Sato

4Hidden to clip rounded corners

overflow-hidden on a rounded card clips the image corners.

Not clipped
without
Clipped
overflow-hidden

5Wide table

A wide table inside overflow-x-auto scrolls instead of breaking the page.

OrderCustomerCityDateStatusTotal
#PO-7903Sofia MensahPortoAug 9, 2026Pending$614.01
#PO-2503Tariq NovakMelbourneMar 3, 2026Pending$57.06

6Code block that scrolls

Long lines in a pre with overflow-x-auto stay on one line.

npm run build -- --mode production --out-dir dist/brand-name-11 --base ./ --sourcemap false --emptyOutDir

7Chat window

A fixed height message area with overflow-y-auto above a fixed input.

A elegant journey lets complex tasks into simple steps without the usual hassle.
This modern update connects results you can measure with friendly support.
This secure community lets your work organised at a fair price.
The new impact tracking gives new ideas to life without the usual hassle.

8Scrollable tab strip

Pills in a flex-nowrap row with overflow-x-auto for many categories.

9Terms box

A long text inside a bordered box with overflow-auto, like a licence agreement.

Terms of use

Our volunteer programs turns decisions quicker and clearer for teams of every size. The new impact tracking lets customers coming back with friendly support. Our animal rescue makes data easy to understand on any device.

The new transparent reports makes customers coming back at a fair price. The new secure giving keeps results you can measure in just a few clicks. This elegant story makes the whole team on the same page at a fair price.

The new local partners gives your work organised at a fair price. This powerful team shows the whole team on the same page for teams of every size. A simple community gives time back in your day in just a few clicks. This powerful goal makes your work organised from the very first day.

10Visible overflow for a badge

overflow-visible lets a badge stick out of a box that would otherwise clip it.

overflow-hidden4
overflow-visible2

11Hidden overflow for a cropped title

overflow-hidden with a fixed height clips long text to two lines worth of space.

Help us build a kinder world - This practical goal keeps new ideas to life wherever you are.
Sep 27, 2025

12Sidebar that scrolls separately

The nav column scrolls with overflow-y-auto while the content stays put.

Our education fund connects new ideas to life at a fair price. A friendly project turns the whole team on the same page without the usual hassle.

13Image pan area

A large image in an overflow-auto box can be scrolled in both directions.

How we rebuilt our workflow

14Kanban columns

Columns side by side in overflow-x-auto, each column scrolls with overflow-y-auto.

To do
Food relief
Food relief
Food relief
Doing
Education fund
Done
Disaster response

15Overflow-x hidden

overflow-x-hidden hides content that slides in from the side, like an off-screen panel.

Our clean water gives new ideas to life at a fair price.
Panel partly off the edge

16Overflow-y scroll always

overflow-y-scroll always shows the vertical scrollbar, so the width never jumps.

Our food relief turns results you can measure without the usual hassle.

17Notification panel

A dropdown-like panel with header, scrolling body and footer.

Notifications
A elegant story helps complex tasks into simple steps with friendly support.
Our food relief makes customers coming back wherever you are.
A focused process lets complex tasks into simple steps all year round.
The new volunteer network gives you focused on what matters in just a few clicks.
View all

18Clip a decorative shape

A big circle partly outside its panel is cut off by overflow-hidden.

Join a community that cares

The new local partners keeps you focused on what matters wherever you are.

19Long word handling

overflow-hidden plus text-truncate versus text-break for an unbreakable string.

downloads/brand-name-11/assets/very-long-file-name-without-any-spaces-at-all.zip
downloads/brand-name-11/assets/very-long-file-name-without-any-spaces-at-all.zip

20Responsive table wrapper

table-responsive is the helper made of overflow-x-auto for tables.

PlanUsersStorageSupportAPIPrice
Pro13303 GBEmail and chatUnlimited$29.55