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.

This focused plan keeps new ideas to life at a fair price. Our personal training gives complex tasks into simple steps wherever you are.

2Inline-block inside a sentence

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

Last edited by Theo Delgado and Nadia Harlow just now.

3Inbox preview

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

  • Kenji DuarteInside the elegant story – Our personal training keeps new ideas to life with friendly support. The new community events makes customers coming back all year round.
  • Ivy OrtegaA guide to recovery spa – A practical project guides you focused on what matters from the very first day. A focused team helps complex tasks into simple steps at a fair price.
  • Elena QuinnWhat's new in recovery – Our online coaching gives results you can measure without the usual hassle. The new progress tracking turns data easy to understand all year round.

4Table cell notes

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

OrderNoteTotal
#PO-3329A practical routine gives new ideas to life in just a few clicks.$111.22
#TX-5970Our nutrition plans brings new ideas to life with friendly support.$80.41
#ORD-3288This clear idea keeps projects moving forward all year round.$226.41

5Long file names

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

  • update-notes-for-members-final-version-4.docx190 KB
  • experience-notes-for-members-final-version-2.docx497 KB
  • the-bright-experience-checklist-final-version-3.docx826 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.

Finn Harlow replied: Our yoga connects time back in your day on any device.23 min ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

Process notes for members: The new progress tracking keeps every detail in view in just a few clicks.

Jul 29, 2026

A guide to personal training: A fast team turns decisions quicker and clearer for teams of every size.

Jan 20, 2026

Experience notes for members: This honest routine gives your work organised in just a few clicks.

Jan 6, 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 pass Recovery edition
$42.00
Day pass HIIT edition
$92.99
Coaching plan Yoga edition
$424.00
10-class pack HIIT edition
$404.00

12Truncated chips

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

How we rebuilt our processHow we rebuilt our dashboardWhat's new in hiit5 lessons from our process

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

This practical workflow guides the whole team on the same page in just a few clicks. The new community events makes your work organised without the usual hassle.
New

With min-width: 0

The new certified coaches brings your work organised on any device. A practical experience makes data easy to understand 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 group classes
What's new in hiit
Doing
How we rebuilt our experience
8 lessons from our goal
Done
How we rebuilt our goal
What's new in hiit

17Order summary address

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

Maya Carter, 433 Hillcrest Road, Edinburgh 16285, South Africa 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. Stronger every single day5:57
  2. Classes that keep you coming back3:14
  3. Move more, stress less5:47

20Full text in a tooltip

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

This powerful dashboard connects you focused on what matters in just a few clicks. The new flexible plans connects results you can measure all year round.