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 team has done this many times, so you never have to guess. We measure success by how many attendees come back and tell their friends.

2Inline-block inside a sentence

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

Last edited by Zoe Alvarez and Ravi Fischer 43 min ago.

3Inbox preview

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

  • Noah SilvaHow to get the most out of a conference – We keep things simple, so you can focus on what matters to you. Our evening party is the best place to turn talks into friendships.
  • Kai IbrahimTen talks you should not miss this year – Virtual passes let you join the main stage live from anywhere. Thousands of attendees already trust us, and we work hard to keep it that way.
  • Leo OrtegaHow to pitch a talk that gets accepted – Start in minutes and get help from a real person whenever you need it. Every session is recorded, so you can catch up on anything you missed.

4Table cell notes

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

OrderNoteTotal
#ORD-3404Every attendee receives a certificate of participation.$347.89
#PO-4463Group tickets include a private meeting room for your team.$113.53
#PO-1620Every detail is handled by people who care about getting it right.$144.96

5Long file names

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

  • five-things-we-learned-this-year-final-version-4.docx782 KB
  • what-we-learned-from-last-year's-feedback-final-version-9.docx823 KB
  • looking-back-at-a-busy-season-final-version-9.docx480 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.

Sofia Whitaker replied: More than eighty speakers share what they have learned the hard way.2 days ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

What makes a panel worth watching: The venue is a short walk from the station and fully accessible.

Mar 21, 2026

Highlights from last year's workshops: Clear prices, honest advice and no surprises along the way.

Jan 28, 2026

Joining online: how the virtual pass works: Three days of keynotes, hands-on workshops and evening meetups.

Dec 13, 2025

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.

VIP pass Keynote edition
$836.00
Workshop ticket Workshop edition
$145.00
Masterclass Workshop edition
$234.00
Virtual pass Webinar edition
$103.00

12Truncated chips

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

Behind the scenes: building the stageTen talks you should not miss this yearHow to pitch a talk that gets acceptedA guide to the city for visiting attendees

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

Friendly people answer your questions quickly, by phone, chat or email. Virtual passes let you join the main stage live from anywhere.
New

With min-width: 0

The networking app helps you meet the right people before you arrive. Workshops are limited to thirty seats, so everyone gets hands-on time.
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
Looking back at a busy season
What our attendees asked us most
Doing
Our favourite tips for busy weeks
Five things we learned this year
Done
How to choose the right ticket
A beginner's guide to getting started

17Order summary address

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

Tariq Okafor, 376 Station Street, Montreal 83237, 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. Talks, workshops and new friendships4:48
  2. Big ideas, small rooms, real conversations3:55
  3. Ideas on stage, connections everywhere4:45

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. We measure success by how many attendees come back and tell their friends.