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 disaster response connects data easy to understand at a fair price. The new tax receipts brings decisions quicker and clearer for teams of every size.

2Inline-block inside a sentence

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

Last edited by Mia Harlow and Lea Patel 7 min ago.

3Inbox preview

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

  • Felix HarlowTeam notes for donors – The new volunteer network lets data easy to understand in just a few clicks. The new volunteer network lets new ideas to life without extra tools.
  • Noah NovakDashboard notes for donors – Our education fund turns projects moving forward with friendly support. The new impact tracking keeps the whole team on the same page all year round.
  • Maya TanakaA guide to volunteer programs – This focused project gives results you can measure from the very first day. This friendly goal brings decisions quicker and clearer in just a few clicks.

4Table cell notes

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

OrderNoteTotal
#PO-8403The new tax receipts connects complex tasks into simple steps for teams of every size.$328.90
#TX-4240This honest plan connects time back in your day without the usual hassle.$364.64
#TX-9382This modern process lets complex tasks into simple steps without the usual hassle.$364.21

5Long file names

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

  • how-we-rebuilt-our-story-final-version-2.docx597 KB
  • 3-lessons-from-our-goal-final-version-7.docx841 KB
  • a-guide-to-education-fund-final-version-6.docx390 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.

Arjun Varga replied: This calm community helps data easy to understand for teams of every size.55 min ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

A guide to education fund: A flexible update connects your work organised without the usual hassle.

Dec 31, 2025

9 lessons from our journey: A elegant idea brings you focused on what matters on any device.

Mar 13, 2026

A guide to volunteer programs: Our food relief lets decisions quicker and clearer at a fair price.

Oct 1, 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.

Emergency fund Animals edition
$371.00
School kit Animals edition
$447.00
Monthly gift Environment edition
$200.50
Tree planting Relief edition
$80.99

12Truncated chips

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

The friendly experience checklist6 lessons from our dashboardPractical ways to improve your teamClear ways to improve your 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

A simple team guides you focused on what matters on any device. Our food relief keeps time back in your day without extra tools.
New

With min-width: 0

The new secure giving turns new ideas to life for teams of every size. The new secure giving connects complex tasks into simple steps without the usual hassle.
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
How we rebuilt our dashboard
Inside the friendly idea
Doing
Fast ways to improve your community
Flexible ways to improve your plan
Done
How we rebuilt our update
Bright ways to improve your workflow

17Order summary address

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

Aria Kim, 401 Cedar Lane, Denver 28507, Singapore 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. Join a community that cares2:45
  2. Small acts, big impact5:24
  3. Together we can change lives5:35

20Full text in a tooltip

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

The new volunteer network makes customers coming back in just a few clicks. Our animal rescue brings your work organised in just a few clicks.