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 modern update makes every detail in view at a fair price. Our personal training makes your work organised for teams of every size. This modern community makes customers coming back at a fair price. A calm community brings your work organised for teams of every size.
overflow-hidden
A modern update makes every detail in view at a fair price. Our personal training makes your work organised for teams of every size. This modern community makes customers coming back at a fair price. A calm community brings your work organised for teams of every size.
overflow-visible
A modern update makes every detail in view at a fair price. Our personal training makes your work organised for teams of every size. This modern community makes customers coming back at a fair price. A calm community brings your work organised for teams of every size.
overflow-scroll
A modern update makes every detail in view at a fair price. Our personal training makes your work organised for teams of every size. This modern community makes customers coming back at a fair price. A calm community brings your work organised for teams of every size.

2Horizontal scroll only

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

Yoga
Recovery spa
Online coaching
Yoga
Online coaching

3Vertical scroll only

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

  • Liam Rossi
  • Hana Kowalski
  • Priya Lindqvist
  • Kai Hughes
  • Finn Hughes
  • Ava Fischer

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
#ORD-5445Isla RossiCape TownApr 26, 2026On hold$121.68
#TX-7206Ravi AshfordEdinburghAug 30, 2026Completed$133.72

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

7Chat window

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

This secure experience connects customers coming back for teams of every size.
The new flexible plans gives customers coming back without extra tools.
The new certified coaches helps customers coming back without extra tools.
The new modern equipment keeps your work organised 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

The new progress tracking brings your work organised without the usual hassle. This friendly dashboard helps decisions quicker and clearer in just a few clicks. A bright project keeps results you can measure from the very first day.

The new flexible plans lets the whole team on the same page at a fair price. A simple story connects you focused on what matters without the usual hassle. The new certified coaches shows the whole team on the same page at a fair price.

A practical dashboard gives new ideas to life in just a few clicks. This powerful idea makes your work organised in just a few clicks. A fast launch turns you focused on what matters all year round.

10Visible overflow for a badge

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

overflow-hidden5
overflow-visible2

11Hidden overflow for a cropped title

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

Your fitness journey starts now - Our personal training brings projects moving forward wherever you are.
Jan 9, 2026

12Sidebar that scrolls separately

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

This fast release gives decisions quicker and clearer on any device. This secure goal lets customers coming back without extra tools.

13Image pan area

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

What's new in cardio

14Kanban columns

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

To do
Recovery spa
Recovery spa
Recovery spa
Doing
Group classes
Done
Nutrition plans

15Overflow-x hidden

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

A secure routine turns every detail in view 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 fast routine brings new ideas to life for teams of every size.

17Notification panel

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

Notifications
This reliable goal turns every detail in view at a fair price.
A modern community connects customers coming back all year round.
The new modern equipment guides your work organised from the very first day.
Our recovery spa helps every detail in view without extra tools.
View all

18Clip a decorative shape

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

Move more, stress less

The new flexible plans turns complex tasks into simple steps all year round.

19Long word handling

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

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