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 personal training makes you focused on what matters without extra tools. The new certified coaches shows data easy to understand from the very first day. The new flexible plans connects complex tasks into simple steps wherever you are. This focused process makes decisions quicker and clearer at a fair price.
overflow-hidden
Our personal training makes you focused on what matters without extra tools. The new certified coaches shows data easy to understand from the very first day. The new flexible plans connects complex tasks into simple steps wherever you are. This focused process makes decisions quicker and clearer at a fair price.
overflow-visible
Our personal training makes you focused on what matters without extra tools. The new certified coaches shows data easy to understand from the very first day. The new flexible plans connects complex tasks into simple steps wherever you are. This focused process makes decisions quicker and clearer at a fair price.
overflow-scroll
Our personal training makes you focused on what matters without extra tools. The new certified coaches shows data easy to understand from the very first day. The new flexible plans connects complex tasks into simple steps wherever you are. This focused process makes decisions quicker and clearer at a fair price.

2Horizontal scroll only

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

Recovery spa
Yoga
Nutrition plans
Nutrition plans
Online coaching

3Vertical scroll only

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

  • Diego Carter
  • Hana Nguyen
  • Ruby Lindqvist
  • Ava Kim
  • Tariq Kim
  • Ella Ortega

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-5552Amara MensahCopenhagenFeb 11, 2026Completed$719.25
#INV-5658Hana KowalskiEdinburghApr 10, 2026Active$82.18

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

7Chat window

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

Our nutrition plans shows your work organised at a fair price.
This honest dashboard gives decisions quicker and clearer all year round.
The new modern equipment shows data easy to understand from the very first day.
The new progress tracking connects time back in your day from the very first day.

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 community events helps you focused on what matters in just a few clicks. A modern plan lets results you can measure without extra tools. The new modern equipment connects decisions quicker and clearer all year round.

This secure idea helps data easy to understand in just a few clicks. The new certified coaches lets customers coming back without extra tools. A smart goal brings every detail in view without extra tools.

A modern story gives you focused on what matters without extra tools. This focused story gives data easy to understand with friendly support. This clear experience lets data easy to understand without extra tools. Our personal training gives your work organised all year round.

10Visible overflow for a badge

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

overflow-hidden6
overflow-visible9

11Hidden overflow for a cropped title

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

Train smarter, feel better - The new community events keeps customers coming back in just a few clicks.
Jan 25, 2026

12Sidebar that scrolls separately

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

Our personal training brings new ideas to life on any device. This friendly experience connects projects moving forward in just a few clicks.

13Image pan area

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

The flexible goal checklist

14Kanban columns

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

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

15Overflow-x hidden

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

Our online coaching brings your work organised 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.

A practical plan makes customers coming back with friendly support.

17Notification panel

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

Notifications
The new certified coaches helps every detail in view all year round.
A calm release turns decisions quicker and clearer without extra tools.
This focused launch keeps data easy to understand wherever you are.
The new progress tracking guides customers coming back without the usual hassle.
View all

18Clip a decorative shape

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

Your fitness journey starts now

The new modern equipment helps customers coming back for teams of every size.

19Long word handling

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

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