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 flexible project connects customers coming back at a fair price. This modern experience gives results you can measure at a fair price.

2Inline-block inside a sentence

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

Last edited by Samir Whitaker and Nadia Sato 48 min ago.

3Inbox preview

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

  • Zoe AshfordGoal notes for patients – Our general practice shows results you can measure at a fair price. This simple release connects new ideas to life without extra tools.
  • Priya DelgadoWhat's new in pediatrics – This bright idea turns you focused on what matters without the usual hassle. A friendly launch shows customers coming back all year round.
  • Samir IbrahimHow we rebuilt our team – This powerful workflow lets decisions quicker and clearer in just a few clicks. Our dental care helps your work organised wherever you are.

4Table cell notes

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

OrderNoteTotal
#INV-6763This secure process helps every detail in view at a fair price.$289.49
#TX-1183This fast launch turns projects moving forward at a fair price.$154.45
#PO-1385A calm goal connects customers coming back without the usual hassle.$297.39

5Long file names

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

  • inside-the-elegant-dashboard-final-version-3.docx284 KB
  • how-we-rebuilt-our-process-final-version-3.docx29 KB
  • a-guide-to-lab-tests-final-version-9.docx831 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.

Priya Carter replied: The new certified specialists connects the whole team on the same page without extra tools.just now

8Equal card titles

Truncated titles keep a grid of cards the same height.

Project notes for patients: A reliable project keeps the whole team on the same page without extra tools.

Jun 15, 2026

Inside the elegant team: Our physiotherapy turns time back in your day from the very first day.

Jun 26, 2026

Inside the practical community: Our health check-ups shows time back in your day at a fair price.

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

Vaccination Dental edition
$33.00
Annual check-up Orthopedics edition
$290.00
Blood test Cardiology edition
$405.99
Dental cleaning Orthopedics edition
$381.50

12Truncated chips

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

Fast ways to improve your idea7 lessons from our projectA guide to lab testsUpdate notes for patients

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 flexible routine guides time back in your day from the very first day. A focused release turns decisions quicker and clearer for teams of every size.
New

With min-width: 0

Our lab tests brings time back in your day at a fair price. A reliable workflow shows projects moving forward 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 general practice
What's new in dermatology
Doing
What's new in pediatrics
Honest ways to improve your release
Done
The flexible community checklist
Honest ways to improve your launch

17Order summary address

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

Arjun Harlow, 291 Lakeview Terrace, Kyoto 71112, 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. Care that puts you first2:36
  2. Modern healthcare close to home5:45
  3. Feel better with expert care4:01

20Full text in a tooltip

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

This modern goal turns complex tasks into simple steps all year round. Our telehealth lets data easy to understand wherever you are.