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.

Clean water wells are built with and maintained by local communities. We keep things simple, so you can focus on what matters to you.

2Inline-block inside a sentence

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

Last edited by Mason Ashford and Theo Morgan yesterday.

3Inbox preview

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

  • Isla FischerA beginner's guide to getting started – We measure success by how many donors come back and tell their friends. Every detail is handled by people who care about getting it right.
  • Sofia IbrahimInside the shelter: from rescue to new home – Every donation is tax-deductible, and receipts arrive by email instantly. A school kit costs less than a cinema ticket and lasts a whole year.
  • Tariq KowalskiHow to choose the right campaign – Our annual report is independently audited and published in full. Companies can match employee donations and double their impact.

4Table cell notes

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

OrderNoteTotal
#PO-6650You receive photos and updates showing exactly what your donation achieved.$353.72
#INV-1279We have helped more than two hundred thousand people since we started.$329.39
#INV-3544Leave a gift in your will and help future generations.$101.81

5Long file names

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

  • the-small-habits-that-make-a-big-difference-final-version-8.docx419 KB
  • a-day-in-the-life-of-a-volunteer-final-version-6.docx76 KB
  • how-your-donations-built-three-new-classrooms-final-version-2.docx227 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.

Kai Nguyen replied: Clean water wells are built with and maintained by local communities.yesterday

8Equal card titles

Truncated titles keep a grid of cards the same height.

Five things we learned this year: Our team has done this many times, so you never have to guess.

Sep 5, 2026

Looking back at a busy season: Every detail is handled by people who care about getting it right.

Mar 27, 2026

Why monthly giving makes such a difference: We keep things simple, so you can focus on what matters to you.

Jan 10, 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.

Vet care Animals edition
$56.00
Teacher training Education edition
$126.00
Shelter support Animals edition
$36.99
Monthly gift Relief edition
$23.00

12Truncated chips

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

Ten ways to fundraise with friendsWhat our donors asked us mostStories from the families we supportHow your donations built three new classrooms

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

Volunteers give their time in schools, shelters and food banks every week. Companies can match employee donations and double their impact.
New

With min-width: 0

Start in minutes and get help from a real person whenever you need it. Local partners know their communities and make sure help arrives where it matters.
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
What happens after a disaster appeal
A day in the life of a volunteer
Doing
The small habits that make a big difference
Inside the shelter: from rescue to new home
Done
How to choose the right campaign
A beginner's guide to getting started

17Order summary address

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

Ethan Varga, 353 Hillcrest Road, Kyoto 42104, Japan 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. Be part of the change4:34
  2. Stand with families in need5:30
  3. Your kindness travels further than you think5:53

20Full text in a tooltip

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

Our annual report is independently audited and published in full. A school kit costs less than a cinema ticket and lasts a whole year.