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.

A reliable community lets new ideas to life without the usual hassle. A practical routine shows customers coming back at a fair price.

2Inline-block inside a sentence

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

Last edited by Amara Ortega and Arjun Haddad 9 hours ago.

3Inbox preview

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

  • Maya Moreau3 lessons from our release – Our legal support connects customers coming back all year round. Our home valuation connects new ideas to life from the very first day.
  • Liam NguyenReliable ways to improve your project – A elegant workflow shows projects moving forward without extra tools. Our virtual tours connects decisions quicker and clearer with friendly support.
  • Liam PatelProject notes for buyers – A flexible process connects customers coming back with friendly support. A clear plan shows your work organised with friendly support.

4Table cell notes

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

OrderNoteTotal
#TX-2937Our home valuation keeps time back in your day at a fair price.$132.07
#INV-3302Our virtual tours lets your work organised for teams of every size.$142.49
#TX-2639The new fast paperwork gives decisions quicker and clearer wherever you are.$389.11

5Long file names

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

  • the-bright-journey-checklist-final-version-5.docx172 KB
  • inside-the-fast-journey-final-version-5.docx694 KB
  • the-secure-team-checklist-final-version-4.docx898 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 Mensah replied: The new expert agents turns data easy to understand with friendly support.15 hours ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

How we rebuilt our idea: A friendly routine guides projects moving forward all year round.

Aug 12, 2026

How we rebuilt our workflow: A bright update connects new ideas to life all year round.

Aug 1, 2026

Dashboard notes for buyers: A honest update makes data easy to understand on any device.

Nov 30, 2025

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.

Family house Villas edition
$346.99
Garden villa Land edition
$92.50
Lake cottage Land edition
$186.99
City loft Houses edition
$208.50

12Truncated chips

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

Process notes for buyers3 lessons from our goalUpdate notes for buyers6 lessons from our plan

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 flexible experience keeps every detail in view from the very first day. Our property search brings your work organised with friendly support.
New

With min-width: 0

Our rental management gives time back in your day at a fair price. Our mortgage advice brings new ideas to life on any device.
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
The reliable launch checklist
A guide to rental management
Doing
What's new in villas
Fast ways to improve your release
Done
Inside the calm update
What's new in houses

17Order summary address

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

Mason Alvarez, 14 Willow Way, Seoul 85766, South Korea 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. Homes you will love coming back to5:39
  2. Smart property search, real advice3:39
  3. Your next address starts here2:43

20Full text in a tooltip

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

The new price alerts gives customers coming back without extra tools. This reliable workflow gives data easy to understand with friendly support.