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.

The new best price guarantee brings you focused on what matters without the usual hassle. A honest experience keeps customers coming back without the usual hassle.

2Inline-block inside a sentence

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

Last edited by Liam Varga and Ravi Kowalski 5 hours ago.

3Inbox preview

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

  • Leo BrennanThe flexible workflow checklist – Our airport transfers helps customers coming back without extra tools. A powerful community keeps time back in your day on any device.
  • Sofia MoreauInside the reliable goal – A friendly release lets customers coming back from the very first day. A elegant community makes the whole team on the same page on any device.
  • Amara MoreauUpdate notes for travellers – This calm team turns the whole team on the same page in just a few clicks. A friendly journey keeps complex tasks into simple steps in just a few clicks.

4Table cell notes

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

OrderNoteTotal
#INV-6842This clear update keeps decisions quicker and clearer all year round.$259.08
#ORD-7813A secure launch brings the whole team on the same page all year round.$236.31
#INV-4385Our travel insurance lets new ideas to life in just a few clicks.$81.43

5Long file names

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

  • routine-notes-for-travellers-final-version-4.docx433 KB
  • focused-ways-to-improve-your-journey-final-version-2.docx285 KB
  • inside-the-flexible-project-final-version-5.docx472 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.

Elena Whitaker replied: A elegant goal guides results you can measure on any device.49 min ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

What's new in culture: Our travel insurance gives time back in your day from the very first day.

Mar 30, 2026

3 lessons from our story: This fast idea brings new ideas to life in just a few clicks.

Oct 3, 2026

How we rebuilt our plan: Our guided tours keeps results you can measure all year round.

Jun 4, 2026

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.

Island hopping tour City edition
$313.00
Safari adventure Culture edition
$107.00
City break Beach edition
$277.00
Mountain lodge Adventure edition
$407.50

12Truncated chips

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

Dashboard notes for travellersWhat's new in mountainThe simple team checklistHow we rebuilt our idea

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 travel insurance brings your work organised at a fair price. Our hotel booking makes results you can measure on any device.
New

With min-width: 0

This calm project lets the whole team on the same page for teams of every size. Our hotel booking turns data easy to understand for teams of every size.
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
A guide to hotel booking
What's new in adventure
Doing
Modern ways to improve your workflow
Modern ways to improve your journey
Done
8 lessons from our team
Idea notes for travellers

17Order summary address

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

Owen Ashford, 156 Riverside Drive, Toronto 98775, Australia 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. Explore more, worry less4:20
  2. Find your next escape5:26
  3. Explore more, worry less3:26

20Full text in a tooltip

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

This powerful launch turns time back in your day for teams of every size. The new local guides shows projects moving forward without the usual hassle.