Skip to content
Fable

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
Airport transfers, tours and dinners are arranged before you arrive. Our team has done this many times, so you never have to guess. Clear prices, honest advice and no surprises along the way. Free cancellation on most stays means you can book now and decide later.
overflow-hidden
Airport transfers, tours and dinners are arranged before you arrive. Our team has done this many times, so you never have to guess. Clear prices, honest advice and no surprises along the way. Free cancellation on most stays means you can book now and decide later.
overflow-visible
Airport transfers, tours and dinners are arranged before you arrive. Our team has done this many times, so you never have to guess. Clear prices, honest advice and no surprises along the way. Free cancellation on most stays means you can book now and decide later.
overflow-scroll
Airport transfers, tours and dinners are arranged before you arrive. Our team has done this many times, so you never have to guess. Clear prices, honest advice and no surprises along the way. Free cancellation on most stays means you can book now and decide later.

2Horizontal scroll only

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

Car rental
Holiday packages
Guided tours
Travel insurance
Holiday packages

3Vertical scroll only

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

  • Jonah Novak
  • Liam Fischer
  • Leo Quinn
  • Elena Varga
  • Omar Ortega
  • Ella Patel

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-9069Nadia NguyenMelbourneJul 11, 2026Completed$349.27
#PO-2542Ruby MoreauCopenhagenJun 18, 2026Pending$70.43

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

7Chat window

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

Thousands of travellers already trust us, and we work hard to keep it that way.
Our travel experts are on call around the clock while you are away.
Travel insurance and car rental can be added in a single click.
Members get room upgrades and late check-out at selected hotels.

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

Flexible dates help you find quieter weeks and better prices. We find the best price, and if you see it cheaper we match it. Every hotel on our list is visited and reviewed by our own travel team. We keep things simple, so you can focus on what matters to you.

Every detail is handled by people who care about getting it right. Friendly people answer your questions quickly, by phone, chat or email. Local guides show you the places that never make it into guidebooks. We measure success by how many travellers come back and tell their friends.

We listen first, then build a plan around what you actually need. From city breaks to safaris, we plan trips around how you like to travel. Family rooms, adults-only retreats and pet-friendly stays in one search. Local guides show you the places that never make it into guidebooks.

10Visible overflow for a badge

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

overflow-hidden3
overflow-visible9

11Hidden overflow for a cropped title

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

Go further, travel better - Flexible dates help you find quieter weeks and better prices.
Feb 14, 2026

12Sidebar that scrolls separately

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

Start in minutes and get help from a real person whenever you need it. Clear prices, honest advice and no surprises along the way.

13Image pan area

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

Our favourite tips for busy weeks

14Kanban columns

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

To do
Guided tours
Travel insurance
Car rental
Doing
Travel insurance
Done
Airport transfers

15Overflow-x hidden

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

Airport transfers, tours and dinners are arranged before you arrive.
Panel partly off the edge

16Overflow-y scroll always

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

Every hotel on our list is visited and reviewed by our own travel team.

17Notification panel

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

Notifications
Our team has done this many times, so you never have to guess.
Friendly people answer your questions quickly, by phone, chat or email.
Every trip supports local businesses and responsible tourism.
We listen first, then build a plan around what you actually need.
View all

18Clip a decorative shape

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

Pack your bags, we will do the rest

Travel insurance and car rental can be added in a single click.

19Long word handling

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

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