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 friendly launch lets every detail in view from the very first day. This calm idea helps time back in your day wherever you are.

2Inline-block inside a sentence

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

Last edited by Ruby Quinn and Owen Nguyen 20 min ago.

3Inbox preview

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

  • Ava Tanaka9 lessons from our plan – A powerful release lets the whole team on the same page on any device. Our loyalty rewards connects your work organised from the very first day.
  • Nora RossiThe calm release checklist – This focused team keeps data easy to understand without extra tools. This powerful launch guides new ideas to life with friendly support.
  • Kai QuinnGoal notes for shoppers – This secure journey guides results you can measure on any device. This focused process helps customers coming back for teams of every size.

4Table cell notes

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

OrderNoteTotal
#INV-2517A elegant project lets you focused on what matters for teams of every size.$273.81
#PO-9099The new sustainable materials connects you focused on what matters without the usual hassle.$211.88
#INV-8764This clear launch turns data easy to understand with friendly support.$371.87

5Long file names

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

  • 6-lessons-from-our-community-final-version-5.docx379 KB
  • how-we-rebuilt-our-process-final-version-7.docx856 KB
  • inside-the-practical-team-final-version-2.docx467 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.

Hana Larsen replied: This smart experience brings the whole team on the same page all year round.6 days ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

3 lessons from our plan: A friendly goal helps decisions quicker and clearer from the very first day.

Nov 22, 2025

A guide to secure checkout: Our 30-day returns helps you focused on what matters without the usual hassle.

Dec 3, 2025

7 lessons from our process: The new secure payments keeps every detail in view with friendly support.

Dec 9, 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.

Glass bottle Accessories edition
$424.00
Canvas tote Outdoor edition
$300.50
Ceramic mug Outdoor edition
$465.50
Leather wallet Outdoor edition
$177.00

12Truncated chips

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

The honest community checklistHonest ways to improve your launchHow we rebuilt our process3 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 focused project shows data easy to understand all year round. A reliable routine makes customers coming back for teams of every size.
New

With min-width: 0

A modern journey connects your work organised wherever you are. The new carbon-neutral delivery gives results you can measure wherever you are.
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 secure checkout
A guide to free shipping
Doing
A guide to free shipping
Practical ways to improve your story
Done
Powerful ways to improve your workflow
6 lessons from our plan

17Order summary address

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

Jonah Silva, 121 Hillcrest Road, Montreal 58594, Denmark 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. Everyday essentials, beautifully made2:52
  2. Shop the collection everyone talks about4:36
  3. Everyday essentials, beautifully made4:15

20Full text in a tooltip

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

Our loyalty rewards helps new ideas to life in just a few clicks. A fast process makes complex tasks into simple steps with friendly support.