Skip to content

Text Truncation

The text-truncate helper shortens long text to a single line and ends it with an ellipsis. It needs a block or inline-block element with a width limit; in flex layouts give the flexible item min-width: 0.

1Block level truncation

A block element with a max width; the dashed outline shows the limit.

Family rooms, adults-only retreats and pet-friendly stays in one search. Clear prices, honest advice and no surprises along the way.

2Inline-block inside a sentence

Inline elements need d-inline-block plus a max width to truncate.

Last edited by Nadia Ashford and Sofia Alvarez yesterday.

3Inbox preview

Subject and preview text cut to one line in an email list.

  • Aria HarlowLooking back at a busy season – We keep things simple, so you can focus on what matters to you. Members get room upgrades and late check-out at selected hotels.
  • Finn LarsenThree days in Lisbon, hour by hour – Airport transfers, tours and dinners are arranged before you arrive. Friendly people answer your questions quickly, by phone, chat or email.
  • Jonah IbrahimWhat our travellers asked us most – We measure success by how many travellers come back and tell their friends. Start in minutes and get help from a real person whenever you need it.

4Table cell notes

A long note column truncated with text-truncate and a max width on the cell.

OrderNoteTotal
#PO-6846Local guides show you the places that never make it into guidebooks.$134.04
#PO-8303Every detail is handled by people who care about getting it right.$164.25
#TX-1768Flexible dates help you find quieter weeks and better prices.$316.04

5Long file names

File names shorten while the size stays visible at the end.

  • the-best-time-of-year-to-visit-japan-final-version-5.docx890 KB
  • five-things-we-learned-this-year-final-version-4.docx516 KB
  • behind-the-scenes-with-our-hotel-inspectors-final-version-7.docx877 KB

6Breadcrumb with a long last item

The current page title truncates so the breadcrumb stays on one line.

7Notification preview

A toast-like card where the message preview stays on one line.

Isla Hughes replied: Start in minutes and get help from a real person whenever you need it.4 days ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

A beginner's guide to getting started: Thousands of travellers already trust us, and we work hard to keep it that way.

Jul 1, 2026

Three days in Lisbon, hour by hour: Friendly people answer your questions quickly, by phone, chat or email.

Nov 16, 2025

The small habits that make a big difference: Members get room upgrades and late check-out at selected hotels.

Nov 24, 2025

9Chat list

In a flex row the text column needs min-width: 0 so text-truncate can shrink it.

10Long web addresses

Page addresses truncate in a link list; the full address is kept in the title attribute.

11Product grid names

Product names cut to one line under each image in a compact grid.

Old town walk Culture edition
$32.99
Vineyard stay Culture edition
$212.00
Mountain lodge Mountain edition
$258.00
Weekend getaway City edition
$164.00

12Truncated chips

Badges with a max width so long labels never break the row.

Looking back at a busy seasonHow to travel more responsiblyFive things we learned this yearWhat our travellers asked us most

13User menu name

A long account name truncates inside the navbar button.

14Why min-width: 0 matters

Left: a flex child without min-width overflows. Right: with min-width: 0 the text truncates.

Without min-width

Local guides show you the places that never make it into guidebooks. Flexible dates help you find quieter weeks and better prices.
New

With min-width: 0

We measure success by how many travellers come back and tell their friends. We find the best price, and if you see it cheaper we match it.
New

15Sidebar menu

Project names in a narrow sidebar stay on one line each.

16Kanban card titles

Narrow board columns keep task titles tidy with truncation.

To do
Hidden beaches of the Mediterranean
Our favourite tips for busy weeks
Doing
A first-timer's guide to safari
The best time of year to visit Japan
Done
Ten weekend escapes within two hours of home
Our favourite small hotels this year

17Order summary address

A long shipping address truncated in a summary line, with an edit link.

Owen Lindqvist, 347 Hillcrest Road, Auckland 26386, New Zealand Change

18Dropdown with a long value

The selected option truncates inside a fixed width dropdown button.

19Playlist

Long episode or track titles truncate while the duration stays aligned.

  1. Go further, travel better5:18
  2. The world is waiting for you5:14
  3. Stay somewhere unforgettable5:33

20Full text in a tooltip

Offer the complete text in a tooltip so nothing is lost when it is truncated.

Airport transfers, tours and dinners are arranged before you arrive. Every hotel on our list is visited and reviewed by our own travel team.