Skip to content
Pixelera

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
Clean water wells are built with and maintained by local communities. A school kit costs less than a cinema ticket and lasts a whole year. Clear prices, honest advice and no surprises along the way. Start in minutes and get help from a real person whenever you need it.
overflow-hidden
Clean water wells are built with and maintained by local communities. A school kit costs less than a cinema ticket and lasts a whole year. Clear prices, honest advice and no surprises along the way. Start in minutes and get help from a real person whenever you need it.
overflow-visible
Clean water wells are built with and maintained by local communities. A school kit costs less than a cinema ticket and lasts a whole year. Clear prices, honest advice and no surprises along the way. Start in minutes and get help from a real person whenever you need it.
overflow-scroll
Clean water wells are built with and maintained by local communities. A school kit costs less than a cinema ticket and lasts a whole year. Clear prices, honest advice and no surprises along the way. Start in minutes and get help from a real person whenever you need it.

2Horizontal scroll only

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

Animal rescue
Volunteer programs
Volunteer programs
Food relief
Clean water

3Vertical scroll only

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

  • Ruby Harlow
  • Finn Kim
  • Leo Whitaker
  • Nadia Sato
  • Chloe Ortega
  • Jonah Moreau

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-2453Mason BrennanSeoulMar 28, 2026Cancelled$258.30
#INV-7308Maya MorganEdinburghJun 4, 2026Completed$302.97

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

7Chat window

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

We have helped more than two hundred thousand people since we started.
Leave a gift in your will and help future generations.
We listen first, then build a plan around what you actually need.
Our team has done this many times, so you never have to guess.

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

You receive photos and updates showing exactly what your donation achieved. Volunteers give their time in schools, shelters and food banks every week. Local partners know their communities and make sure help arrives where it matters.

Ninety cents of every dollar goes directly to the projects you support. Monthly gifts let us plan ahead and respond quickly when disaster strikes. Friendly people answer your questions quickly, by phone, chat or email. We keep things simple, so you can focus on what matters to you.

Every donation is tax-deductible, and receipts arrive by email instantly. Every detail is handled by people who care about getting it right. Thousands of donors already trust us, and we work hard to keep it that way. Every donation is tax-deductible, and receipts arrive by email instantly.

10Visible overflow for a badge

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

overflow-hidden6
overflow-visible5

11Hidden overflow for a cropped title

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

Together we can change lives - Ninety cents of every dollar goes directly to the projects you support.
May 26, 2026

12Sidebar that scrolls separately

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

Our team has done this many times, so you never have to guess. Leave a gift in your will and help future generations.

13Image pan area

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

Why we plant trees with the schools we build

14Kanban columns

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

To do
Animal rescue
Education fund
Volunteer programs
Doing
Animal rescue
Done
Disaster response

15Overflow-x hidden

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

Local partners know their communities and make sure help arrives where it matters.
Panel partly off the edge

16Overflow-y scroll always

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

Monthly gifts let us plan ahead and respond quickly when disaster strikes.

17Notification panel

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

Notifications
We have helped more than two hundred thousand people since we started.
Start in minutes and get help from a real person whenever you need it.
Companies can match employee donations and double their impact.
Clear prices, honest advice and no surprises along the way.
View all

18Clip a decorative shape

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

Your kindness travels further than you think

Clean water wells are built with and maintained by local communities.

19Long word handling

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

downloads/pixelera/assets/very-long-file-name-without-any-spaces-at-all.zip
downloads/pixelera/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
Pro27273 GBEmail and chatUnlimited$21.22