Skip to content
Sageio

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.

We have helped more than two hundred thousand people since we started. 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 Ella Okafor and Hana Hughes just now.

3Inbox preview

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

  • Omar TanakaOur yearly impact report, explained – Thousands of donors already trust us, and we work hard to keep it that way. Companies can match employee donations and double their impact.
  • Ruby BrennanThe small habits that make a big difference – We measure success by how many donors come back and tell their friends. Friendly people answer your questions quickly, by phone, chat or email.
  • Mason AshfordStories from the families we support – Every detail is handled by people who care about getting it right. Monthly gifts let us plan ahead and respond quickly when disaster strikes.

4Table cell notes

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

OrderNoteTotal
#PO-2878Our annual report is independently audited and published in full.$298.68
#TX-5434Volunteers give their time in schools, shelters and food banks every week.$166.21
#PO-9832Start in minutes and get help from a real person whenever you need it.$39.13

5Long file names

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

  • why-monthly-giving-makes-such-a-difference-final-version-4.docx198 KB
  • how-to-choose-the-right-campaign-final-version-8.docx657 KB
  • ten-ways-to-fundraise-with-friends-final-version-7.docx332 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.

Chloe Quinn replied: Every detail is handled by people who care about getting it right.6 days ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

What happens after a disaster appeal: Clear prices, honest advice and no surprises along the way.

Feb 16, 2026

Stories from the families we support: Clean water wells are built with and maintained by local communities.

Sep 8, 2026

Why monthly giving makes such a difference: Our team has done this many times, so you never have to guess.

Apr 26, 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.

Monthly gift Relief edition
$25.99
Solar lamp Environment edition
$18.99
Health kit Health edition
$34.00
Vet care Animals edition
$62.99

12Truncated chips

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

A beginner's guide to getting startedA day in the life of a volunteerThe small habits that make a big differenceFive things we learned this year

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

Thousands of donors already trust us, and we work hard to keep it that way. A school kit costs less than a cinema ticket and lasts a whole year.
New

With min-width: 0

Companies can match employee donations and double their impact. We measure success by how many donors come back and tell their friends.
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 your donations built three new classrooms
Why we plant trees with the schools we build
Doing
Meet the partners behind our water projects
Ten ways to fundraise with friends
Done
How to choose the right campaign
Our favourite tips for busy weeks

17Order summary address

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

Elena Ortega, 235 Harbour Road, Prague 12715, Czechia 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. Hope starts with you5:58
  2. Small acts, big impact3:14
  3. Every donation makes a difference3:53

20Full text in a tooltip

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

You receive photos and updates showing exactly what your donation achieved. We listen first, then build a plan around what you actually need.