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.

Our hotel booking helps customers coming back on any device. Our airport transfers keeps your work organised all year round.

2Inline-block inside a sentence

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

Last edited by Liam Kim and Luna Ashford 12 min ago.

3Inbox preview

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

  • Ravi AshfordA guide to travel insurance – A powerful idea helps results you can measure wherever you are. The new 24/7 assistance guides complex tasks into simple steps for teams of every size.
  • Theo FischerRoutine notes for travellers – A elegant update shows new ideas to life without the usual hassle. This modern workflow gives data easy to understand on any device.
  • Arjun MensahSecure ways to improve your project – This modern goal guides data easy to understand from the very first day. The new free cancellation gives every detail in view on any device.

4Table cell notes

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

OrderNoteTotal
#TX-1053Our hotel booking turns every detail in view on any device.$250.31
#ORD-2081The new free cancellation lets customers coming back at a fair price.$288.89
#ORD-1586The new 24/7 assistance helps time back in your day with friendly support.$73.60

5Long file names

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

  • the-reliable-workflow-checklist-final-version-7.docx363 KB
  • team-notes-for-travellers-final-version-9.docx791 KB
  • a-guide-to-airport-transfers-final-version-6.docx328 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.

Nora Duarte replied: A bright launch keeps your work organised on any device.just now

8Equal card titles

Truncated titles keep a grid of cards the same height.

Inside the bright routine: Our airport transfers makes every detail in view all year round.

Aug 25, 2026

4 lessons from our dashboard: The new local guides makes customers coming back with friendly support.

Jul 7, 2026

Dashboard notes for travellers: The new curated stays keeps time back in your day for teams of every size.

Nov 19, 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.

Ocean view suite City edition
$104.00
City break Mountain edition
$144.00
Weekend getaway Culture edition
$321.50
Mountain lodge Mountain edition
$206.50

12Truncated chips

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

5 lessons from our workflowThe elegant story checklistSimple ways to improve your processPlan notes for travellers

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

Our guided tours connects new ideas to life wherever you are. Our holiday packages lets every detail in view on any device.
New

With min-width: 0

This powerful routine turns customers coming back on any device. The new free cancellation connects you focused on what matters all year round.
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
Routine notes for travellers
8 lessons from our process
Doing
8 lessons from our idea
How we rebuilt our routine
Done
Flexible ways to improve your update
3 lessons from our release

17Order summary address

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

Arjun Kowalski, 254 Harbour Road, Montreal 65961, 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. Find your next escape5:24
  2. Explore more, worry less3:17
  3. Trips designed around you3:59

20Full text in a tooltip

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

Our travel insurance keeps the whole team on the same page with friendly support. The new curated stays shows new ideas to life on any device.