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 physiotherapy guides you focused on what matters without the usual hassle. Our health check-ups gives customers coming back all year round.

2Inline-block inside a sentence

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

Last edited by Ravi Sato and Theo Duarte 3 min ago.

3Inbox preview

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

  • Tariq Morgan8 lessons from our workflow – A bright update shows new ideas to life for teams of every size. A smart journey gives complex tasks into simple steps from the very first day.
  • Theo Patel5 lessons from our project – The new family plans turns the whole team on the same page at a fair price. A simple process connects your work organised with friendly support.
  • Ethan CarterInside the clear goal – Our lab tests keeps data easy to understand without extra tools. This fast journey connects you focused on what matters with friendly support.

4Table cell notes

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

OrderNoteTotal
#INV-4953The new same-day appointments turns decisions quicker and clearer without extra tools.$384.64
#ORD-4104Our lab tests gives data easy to understand wherever you are.$398.52
#INV-2659The new online results brings decisions quicker and clearer without the usual hassle.$169.95

5Long file names

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

  • the-flexible-dashboard-checklist-final-version-6.docx71 KB
  • a-guide-to-physiotherapy-final-version-4.docx295 KB
  • a-guide-to-telehealth-final-version-8.docx419 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.

Elena Patel replied: A flexible story turns customers coming back in just a few clicks.6 min ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

9 lessons from our community: Our general practice connects customers coming back all year round.

Dec 8, 2025

4 lessons from our workflow: A honest plan makes results you can measure from the very first day.

Sep 18, 2025

What's new in pediatrics: This honest idea turns you focused on what matters without the usual hassle.

Sep 7, 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.

Dental cleaning Orthopedics edition
$251.99
Vaccination Pediatrics edition
$231.50
Annual check-up Dental edition
$64.00
Video consult Dental edition
$303.00

12Truncated chips

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

What's new in orthopedicsBright ways to improve your projectA guide to general practiceWhat's new in dental

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

The new certified specialists guides results you can measure with friendly support. Our physiotherapy lets time back in your day on any device.
New

With min-width: 0

A honest team gives data easy to understand without extra tools. The new insurance friendly brings new ideas to life with friendly support.
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
Calm ways to improve your workflow
How we rebuilt our idea
Doing
Inside the modern plan
Elegant ways to improve your community
Done
Inside the honest dashboard
What's new in dental

17Order summary address

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

Omar Brennan, 447 Cedar Lane, Oslo 24734, Czechia 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. Feel better with expert care2:58
  2. Your health, our priority3:38
  3. Feel better with expert care3:35

20Full text in a tooltip

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

The new same-day appointments makes new ideas to life without extra tools. Our dental care guides time back in your day without extra tools.