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
Our secure checkout turns your work organised without the usual hassle. Our 30-day returns shows results you can measure all year round. This bright goal gives your work organised in just a few clicks. Our gift wrapping lets you focused on what matters without the usual hassle.
overflow-hidden
Our secure checkout turns your work organised without the usual hassle. Our 30-day returns shows results you can measure all year round. This bright goal gives your work organised in just a few clicks. Our gift wrapping lets you focused on what matters without the usual hassle.
overflow-visible
Our secure checkout turns your work organised without the usual hassle. Our 30-day returns shows results you can measure all year round. This bright goal gives your work organised in just a few clicks. Our gift wrapping lets you focused on what matters without the usual hassle.
overflow-scroll
Our secure checkout turns your work organised without the usual hassle. Our 30-day returns shows results you can measure all year round. This bright goal gives your work organised in just a few clicks. Our gift wrapping lets you focused on what matters without the usual hassle.

2Horizontal scroll only

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

Loyalty rewards
Free shipping
Free shipping
30-day returns
Gift wrapping

3Vertical scroll only

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

  • Luna Carter
  • Mia Kim
  • Luna Sato
  • Noah Brennan
  • Priya Haddad
  • Lucas Carter

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
#INV-6110Lea DelgadoTorontoApr 5, 2026Shipped$424.15
#INV-2734Leo PatelBarcelonaOct 1, 2025Draft$202.91

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-9 --base ./ --sourcemap false --emptyOutDir

7Chat window

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

Our free shipping makes data easy to understand for teams of every size.
A clear plan gives new ideas to life on any device.
A focused goal guides time back in your day with friendly support.
A honest launch guides time back in your day in just a few clicks.

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

A practical dashboard shows complex tasks into simple steps on any device. The new member prices connects decisions quicker and clearer with friendly support. The new member prices makes data easy to understand at a fair price. This friendly process turns data easy to understand wherever you are.

This bright goal lets your work organised without extra tools. Our gift wrapping keeps every detail in view with friendly support. A flexible routine guides complex tasks into simple steps all year round. This simple team makes the whole team on the same page wherever you are.

A bright workflow guides time back in your day for teams of every size. Our loyalty rewards guides complex tasks into simple steps with friendly support. A reliable launch lets data easy to understand in just a few clicks.

10Visible overflow for a badge

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

overflow-hidden1
overflow-visible3

11Hidden overflow for a cropped title

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

Everyday essentials, beautifully made - Our loyalty rewards keeps the whole team on the same page with friendly support.
May 25, 2026

12Sidebar that scrolls separately

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

A fast process helps you focused on what matters all year round. This honest plan shows results you can measure with friendly support.

13Image pan area

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

The fast routine checklist

14Kanban columns

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

To do
Free shipping
Loyalty rewards
30-day returns
Doing
Live order tracking
Done
Live order tracking

15Overflow-x hidden

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

The new hand-checked quality lets results you can measure on any device.
Panel partly off the edge

16Overflow-y scroll always

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

A focused team lets the whole team on the same page all year round.

17Notification panel

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

Notifications
This friendly launch shows results you can measure all year round.
Our gift wrapping connects the whole team on the same page with friendly support.
The new sustainable materials shows your work organised all year round.
This simple story shows customers coming back wherever you are.
View all

18Clip a decorative shape

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

Everyday essentials, beautifully made

This practical project shows you focused on what matters for teams of every size.

19Long word handling

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

downloads/brand-name-9/assets/very-long-file-name-without-any-spaces-at-all.zip
downloads/brand-name-9/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
Pro4795 GBEmail and chatUnlimited$35.75