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 packaging is plastic-free and every delivery is carbon-neutral. Pay securely with card, wallet or in three interest-free instalments.

2Inline-block inside a sentence

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

Last edited by Diego Delgado and Nadia Ibrahim 5 hours ago.

3Inbox preview

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

  • Ruby LarsenA small guide to a calmer home – Thousands of shoppers already trust us, and we work hard to keep it that way. Start in minutes and get help from a real person whenever you need it.
  • Tariq OrtegaHow to care for linen so it lasts for years – Order before 2 pm and most items leave our warehouse the same day. Gift wrapping and a handwritten note are free on every order.
  • Arjun KimOur favourite tips for busy weeks – Each product is checked by hand before it goes into the box. Our team has done this many times, so you never have to guess.

4Table cell notes

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

OrderNoteTotal
#INV-1618Every piece is made in small batches from materials we test ourselves.$24.09
#PO-9045New pieces arrive every month, and the best ones sell out fast.$146.39
#ORD-5005Not sure about the size? Our fit guide and live chat help you choose.$139.86

5Long file names

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

  • meet-the-makers-behind-our-ceramics-final-version-2.docx315 KB
  • five-things-we-learned-this-year-final-version-8.docx150 KB
  • five-pieces-for-a-capsule-wardrobe-final-version-8.docx193 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.

Kenji Varga replied: Members get early access to new drops and prices only they can see.33 min ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

Our favourite tips for busy weeks: We measure success by how many shoppers come back and tell their friends.

Nov 3, 2025

What to pack for a rainy weekend outdoors: Free shipping on orders over $50 and easy returns within 30 days.

Nov 26, 2025

A small guide to a calmer home: Members get early access to new drops and prices only they can see.

Feb 10, 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.

Rain jacket Outdoor edition
$123.99
Face oil Beauty edition
$40.00
Hand cream Beauty edition
$19.00
Leather wallet Accessories edition
$61.99

12Truncated chips

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

Five things we learned this yearWhat our shoppers asked us mostLooking back at a busy seasonStyling one piece three different ways

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

New pieces arrive every month, and the best ones sell out fast. Every piece is made in small batches from materials we test ourselves.
New

With min-width: 0

Order before 2 pm and most items leave our warehouse the same day. Not sure about the size? Our fit guide and live chat help you choose.
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
Our guide to gifts under $50
Meet the makers behind our ceramics
Doing
The small habits that make a big difference
How to care for linen so it lasts for years
Done
Inside our new autumn collection
A three-step skincare routine that works

17Order summary address

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

Nora Hughes, 180 Riverside Drive, Montreal 31206, Canada 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. Quality goods delivered to your door3:52
  2. Everyday essentials, beautifully made4:46
  3. Shop the collection everyone talks about4:56

20Full text in a tooltip

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

Each product is checked by hand before it goes into the box. Pay securely with card, wallet or in three interest-free instalments.