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 calm plan shows the whole team on the same page at a fair price. Our study groups keeps 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 Theo Delgado and Chloe Harlow 1 days ago.

3Inbox preview

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

  • Mason NguyenWhat's new in lifestyle – A powerful launch shows results you can measure from the very first day. A modern dashboard lets complex tasks into simple steps without the usual hassle.
  • Tariq Ashford6 lessons from our plan – This clear release lets new ideas to life from the very first day. Our study groups keeps customers coming back without the usual hassle.
  • Tariq QuinnInside the bright update – A modern project helps results you can measure from the very first day. Our online courses guides the whole team on the same page at a fair price.

4Table cell notes

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

OrderNoteTotal
#TX-1578This bright workflow helps time back in your day at a fair price.$98.08
#TX-8056Our online courses brings data easy to understand without the usual hassle.$33.63
#TX-1326This friendly dashboard guides projects moving forward from the very first day.$108.09

5Long file names

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

  • inside-the-bright-dashboard-final-version-2.docx738 KB
  • inside-the-bright-community-final-version-6.docx423 KB
  • what's-new-in-design-final-version-2.docx296 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.

Theo Ortega replied: The new quizzes guides projects moving forward on any device.yesterday

8Equal card titles

Truncated titles keep a grid of cards the same height.

6 lessons from our routine: A reliable routine makes every detail in view at a fair price.

Mar 17, 2026

What's new in development: The new lifetime access makes your work organised without extra tools.

Dec 19, 2025

What's new in business: The new expert mentors helps new ideas to life from the very first day.

Oct 29, 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.

UX fundamentals Development edition
$147.99
Web development Business edition
$466.99
Public speaking Business edition
$456.50
Data analysis Business edition
$271.50

12Truncated chips

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

What's new in design9 lessons from our launchInside the practical storyWhat's new in marketing

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 focused team keeps results you can measure wherever you are. This smart story shows new ideas to life for teams of every size.
New

With min-width: 0

Our certificates makes data easy to understand on any device. The new hands-on projects guides you focused on what matters 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
7 lessons from our project
What's new in marketing
Doing
Inside the powerful community
7 lessons from our story
Done
What's new in business
A guide to mentoring

17Order summary address

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

Elena Okafor, 100 Riverside Drive, Valencia 19865, Japan 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. Your next career starts here3:31
  2. Knowledge that moves you forward4:06
  3. Study smarter with guided paths3:14

20Full text in a tooltip

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

A powerful update helps the whole team on the same page wherever you are. Our career coaching gives every detail in view in just a few clicks.