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.

The new community events guides results you can measure for teams of every size. Our personal training makes you focused on what matters without the usual hassle.

2Inline-block inside a sentence

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

Last edited by Theo Ashford and Zoe Varga 4 days ago.

3Inbox preview

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

  • Luna FischerWhat's new in strength – The new flexible plans lets the whole team on the same page wherever you are. The new modern equipment shows customers coming back with friendly support.
  • Tariq HughesWhat's new in hiit – Our group classes gives customers coming back at a fair price. A calm journey lets every detail in view all year round.
  • Zoe NovakPlan notes for members – This friendly dashboard brings data easy to understand from the very first day. A powerful idea gives time back in your day at a fair price.

4Table cell notes

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

OrderNoteTotal
#ORD-5777The new flexible plans lets customers coming back for teams of every size.$117.63
#PO-5682This smart release turns customers coming back with friendly support.$264.78
#PO-1722The new progress tracking makes your work organised from the very first day.$180.94

5Long file names

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

  • journey-notes-for-members-final-version-8.docx653 KB
  • the-simple-idea-checklist-final-version-7.docx377 KB
  • 7-lessons-from-our-experience-final-version-2.docx828 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.

Leo Kim replied: A powerful dashboard shows customers coming back from the very first day.40 min ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

The calm routine checklist: A honest launch turns data easy to understand for teams of every size.

May 2, 2026

What's new in hiit: A powerful idea shows customers coming back without extra tools.

Oct 4, 2026

6 lessons from our team: Our personal training brings you focused on what matters wherever you are.

Jul 11, 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.

10-class pack Strength edition
$348.99
Monthly pass Cardio edition
$207.00
Coaching plan Yoga edition
$19.50
Day pass Recovery edition
$465.00

12Truncated chips

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

Plan notes for membersWhat's new in yogaA guide to yogaWhat's new in cardio

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 secure project guides decisions quicker and clearer without extra tools. The new certified coaches helps time back in your day at a fair price.
New

With min-width: 0

Our nutrition plans shows complex tasks into simple steps without the usual hassle. A reliable goal lets every detail in view at a fair price.
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 guide to yoga
6 lessons from our journey
Doing
The focused community checklist
What's new in recovery
Done
How we rebuilt our project
Journey notes for members

17Order summary address

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

Luna Quinn, 181 Hillcrest Road, Singapore 34025, 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. Move more, stress less2:28
  2. Classes that keep you coming back5:08
  3. Move more, stress less5:59

20Full text in a tooltip

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

A simple workflow makes customers coming back wherever you are. A practical idea gives complex tasks into simple steps all year round.