Skip to content
Lumenan Studio

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.

Track your progress in the app and see how far you have come. Open 24 hours, so you can train whenever it suits your day.

2Inline-block inside a sentence

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

Last edited by Arjun Duarte and Hana Moreau 3 days ago.

3Inbox preview

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

  • Chloe HarlowWhat to eat before a morning workout – We listen first, then build a plan around what you actually need. Modern equipment is cleaned, serviced and ready every day.
  • Lea NguyenOur most popular classes this month – Certified coaches design every session around your level and your goals. Pause or change your membership any time, with no long contracts.
  • Mason MorganA beginner's guide to strength training – Online coaching keeps you on track when you travel. Start in minutes and get help from a real person whenever you need it.

4Table cell notes

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

OrderNoteTotal
#PO-7755Our recovery spa has a sauna, cold plunge and massage rooms.$46.96
#PO-3155More than sixty classes a week, from sunrise yoga to late-night spin.$400.58
#TX-9813Track your progress in the app and see how far you have come.$283.80

5Long file names

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

  • how-to-stay-motivated-through-winter-final-version-8.docx748 KB
  • our-favourite-tips-for-busy-weeks-final-version-9.docx118 KB
  • what-our-members-asked-us-most-final-version-9.docx484 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 Tanaka replied: Thousands of members already trust us, and we work hard to keep it that way.59 min ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

A beginner's guide to strength training: Community events keep you motivated, from fun runs to workshops.

May 12, 2026

Running your first 5K: an eight-week plan: More than sixty classes a week, from sunrise yoga to late-night spin.

Jul 6, 2026

How to choose the right class: Modern equipment is cleaned, serviced and ready every day.

Aug 16, 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.

Day pass Cardio edition
$14.00
Sauna session Recovery edition
$17.00
Personal training Strength edition
$64.00
Nutrition guide Recovery edition
$29.99

12Truncated chips

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

Our favourite tips for busy weeksWhat to eat before a morning workoutOur most popular classes this monthA beginner's guide to getting started

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

Start in minutes and get help from a real person whenever you need it. Nutrition plans fit your routine and the food you actually enjoy.
New

With min-width: 0

Online coaching keeps you on track when you travel. We keep things simple, so you can focus on what matters to you.
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 our members asked us most
Five stretches for desk workers
Doing
How our coaches plan a new class
Five things we learned this year
Done
Looking back at a busy season
The small habits that make a big difference

17Order summary address

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

Ella Rossi, 378 Orchard Close, Seoul 59134, 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. Better habits start this week4:00
  2. Sweat, breathe, repeat5:27
  3. Real coaches, real results2:47

20Full text in a tooltip

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

Our recovery spa has a sauna, cold plunge and massage rooms. Small group classes mean your coach knows your name and your form.