Skip to content
Solais Labs

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.

Clear prices, honest advice and no surprises along the way. Thousands of attendees already trust us, and we work hard to keep it that way.

2Inline-block inside a sentence

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

Last edited by Amara Whitaker and Noah Mensah 7 hours ago.

3Inbox preview

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

  • Kenji MorganA beginner's guide to getting started – More than eighty speakers share what they have learned the hard way. Workshops are limited to thirty seats, so everyone gets hands-on time.
  • Nora PatelBehind the scenes: building the stage – Every session is recorded, so you can catch up on anything you missed. Our team has done this many times, so you never have to guess.
  • Mason RossiHow to choose the right ticket – Group tickets include a private meeting room for your team. 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
#ORD-3354Three days of keynotes, hands-on workshops and evening meetups.$327.65
#PO-6351The venue is a short walk from the station and fully accessible.$224.13
#INV-7952More than eighty speakers share what they have learned the hard way.$381.72

5Long file names

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

  • looking-back-at-a-busy-season-final-version-9.docx88 KB
  • what-makes-a-panel-worth-watching-final-version-2.docx346 KB
  • our-favourite-tips-for-busy-weeks-final-version-7.docx26 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.

Samir Alvarez replied: The venue is a short walk from the station and fully accessible.22 hours ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

What we learned from last year's feedback: Thousands of attendees already trust us, and we work hard to keep it that way.

Dec 1, 2025

Joining online: how the virtual pass works: Workshops are limited to thirty seats, so everyone gets hands-on time.

Sep 8, 2026

Five things we learned this year: Our evening party is the best place to turn talks into friendships.

Mar 31, 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.

Workshop ticket Workshop edition
$134.00
Early bird pass Keynote edition
$304.99
Panel day ticket Panel edition
$201.00
Student pass Keynote edition
$141.99

12Truncated chips

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

Announcing our first keynote speakersHow to pitch a talk that gets acceptedTen talks you should not miss this yearHow to get the most out of a conference

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

Friendly people answer your questions quickly, by phone, chat or email. Sponsors meet decision-makers in a relaxed, friendly setting.
New

With min-width: 0

Every session is recorded, so you can catch up on anything you missed. Our team has done this many times, so you never have to guess.
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 favourite tips for busy weeks
Looking back at a busy season
Doing
A beginner's guide to getting started
Behind the scenes: building the stage
Done
What our attendees asked us most
The small habits that make a big difference

17Order summary address

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

Isla Sato, 312 Station Street, Porto 34101, Portugal 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. Join the conference of the year2:53
  2. Meet the people shaping the future4:24
  3. Three days that change how you work4:39

20Full text in a tooltip

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

We listen first, then build a plan around what you actually need. Three days of keynotes, hands-on workshops and evening meetups.