Skip to content
Pixelera

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.

Thousands of donors already trust us, and we work hard to keep it that way. 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 Ethan Mensah and Mason Brennan 15 hours ago.

3Inbox preview

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

  • Sofia VargaA day in the life of a volunteer – Our team has done this many times, so you never have to guess. We measure success by how many donors come back and tell their friends.
  • Kenji AshfordLooking back at a busy season – Every donation is tax-deductible, and receipts arrive by email instantly. Ninety cents of every dollar goes directly to the projects you support.
  • Kai PatelFive things we learned this year – You receive photos and updates showing exactly what your donation achieved. We keep things simple, so you can focus on what matters to you.

4Table cell notes

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

OrderNoteTotal
#PO-1513Our annual report is independently audited and published in full.$178.35
#TX-6512Ninety cents of every dollar goes directly to the projects you support.$249.01
#TX-1069Volunteers give their time in schools, shelters and food banks every week.$295.09

5Long file names

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

  • our-favourite-tips-for-busy-weeks-final-version-5.docx215 KB
  • inside-the-shelter:-from-rescue-to-new-home-final-version-9.docx304 KB
  • what-our-donors-asked-us-most-final-version-9.docx614 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.

Mateo Delgado replied: We measure success by how many donors come back and tell their friends.just now

8Equal card titles

Truncated titles keep a grid of cards the same height.

How your donations built three new classrooms: A school kit costs less than a cinema ticket and lasts a whole year.

Mar 9, 2026

How to choose the right campaign: Friendly people answer your questions quickly, by phone, chat or email.

Sep 15, 2025

Our yearly impact report, explained: Clear prices, honest advice and no surprises along the way.

May 14, 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.

Meal pack Relief edition
$14.00
Clean water well Health edition
$474.99
Library books Education edition
$45.00
Tree planting Environment edition
$9.00

12Truncated chips

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

A beginner's guide to getting startedFive things we learned this yearStories from the families we supportLooking back at a busy season

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

Every donation is tax-deductible, and receipts arrive by email instantly. Clean water wells are built with and maintained by local communities.
New

With min-width: 0

Local partners know their communities and make sure help arrives where it matters. You receive photos and updates showing exactly what your donation achieved.
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 day in the life of a volunteer
What happens after a disaster appeal
Doing
Why we plant trees with the schools we build
The small habits that make a big difference
Done
What our donors asked us most
Meet the partners behind our water projects

17Order summary address

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

Priya Fischer, 325 Harbour Road, Toronto 48303, Canada 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. Your kindness travels further than you think2:20
  2. Every donation makes a difference3:29
  3. Join a community that cares4:13

20Full text in a tooltip

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

We listen first, then build a plan around what you actually need. Monthly gifts let us plan ahead and respond quickly when disaster strikes.