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 powerful experience brings customers coming back on any device. Our 30-day returns guides decisions quicker and clearer in just a few clicks.

2Inline-block inside a sentence

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

Last edited by Ella Delgado and Maya Delgado 5 days ago.

3Inbox preview

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

  • Freya IbrahimThe fast workflow checklist – Our 30-day returns makes new ideas to life wherever you are. This calm routine guides new ideas to life from the very first day.
  • Tariq Brennan6 lessons from our experience – Our live order tracking brings time back in your day in just a few clicks. Our free shipping shows the whole team on the same page for teams of every size.
  • Freya OrtegaThe smart idea checklist – This calm process gives projects moving forward on any device. This bright experience keeps projects moving forward at a fair price.

4Table cell notes

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

OrderNoteTotal
#INV-2799A simple launch turns time back in your day at a fair price.$380.35
#PO-6888A elegant launch keeps every detail in view at a fair price.$262.55
#ORD-3974Our free shipping connects the whole team on the same page without the usual hassle.$174.72

5Long file names

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

  • how-we-rebuilt-our-community-final-version-5.docx519 KB
  • 8-lessons-from-our-experience-final-version-5.docx641 KB
  • what's-new-in-home-final-version-6.docx566 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.

Samir Rossi replied: Our secure checkout guides time back in your day from the very first day.yesterday

8Equal card titles

Truncated titles keep a grid of cards the same height.

Team notes for shoppers: This friendly project shows you focused on what matters without the usual hassle.

Nov 11, 2025

How we rebuilt our team: The new member prices makes your work organised without extra tools.

Apr 25, 2026

Fast ways to improve your project: This reliable goal turns you focused on what matters all year round.

Apr 15, 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.

Canvas tote Accessories edition
$150.99
Wool scarf Apparel edition
$78.99
Ceramic mug Outdoor edition
$161.00
Leather wallet Beauty edition
$292.50

12Truncated chips

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

Practical ways to improve your storyIdea notes for shoppersModern ways to improve your dashboard7 lessons from our journey

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

Our secure checkout gives data easy to understand without the usual hassle. A smart workflow helps results you can measure wherever you are.
New

With min-width: 0

A bright goal brings the whole team on the same page on any device. The new hand-checked quality shows complex tasks into simple steps for teams of every size.
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
What's new in beauty
Inside the smart experience
Doing
The clear team checklist
The practical community checklist
Done
9 lessons from our workflow
Process notes for shoppers

17Order summary address

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

Nadia Okafor, 462 Market Square, Cape Town 80857, 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. Designed to last, priced to love2:32
  2. Shop the collection everyone talks about4:17
  3. Designed to last, priced to love3:35

20Full text in a tooltip

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

The new easy exchanges turns projects moving forward in just a few clicks. The new easy exchanges keeps new ideas to life without extra tools.