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.

We listen first, then build a plan around what you actually need. Thousands of clients 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 Kai Moreau and Lucas Fischer yesterday.

3Inbox preview

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

  • Aria DuarteA beginner's guide to getting started – Our team has done this many times, so you never have to guess. We test early with real users, so the final design works on the first day.
  • Ella QuinnThe small habits that make a big difference – Our motion team turns complex ideas into short films people actually watch. Every project starts with a workshop, so we understand your audience before we design.
  • Freya HarlowInside our design process – We have helped more than a hundred companies launch, rebrand and grow online. Clear prices, honest advice and no surprises along the way.

4Table cell notes

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

OrderNoteTotal
#TX-8826We measure success by how many clients come back and tell their friends.$389.11
#PO-3369Friendly people answer your questions quickly, by phone, chat or email.$284.87
#TX-1764Fixed prices and weekly demos keep you in control from start to finish.$78.35

5Long file names

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

  • choosing-colours-that-sell-final-version-9.docx50 KB
  • a-checklist-for-your-next-website-launch-final-version-3.docx595 KB
  • lessons-from-a-year-of-client-workshops-final-version-9.docx615 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.

Mia Okafor replied: We listen first, then build a plan around what you actually need.just now

8Equal card titles

Truncated titles keep a grid of cards the same height.

How to choose the right project: Every project starts with a workshop, so we understand your audience before we design.

Jun 23, 2026

Choosing colours that sell: Clear prices, honest advice and no surprises along the way.

Nov 24, 2025

How we ran a rebrand in eight weeks: From logo to launch campaign, everything is designed to work together.

Sep 25, 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.

Brand sprint Branding edition
$5,200
Launch campaign Social edition
$10,000
Website package Web edition
$8,350
Social kit Social edition
$1,900

12Truncated chips

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

A beginner's guide to getting startedInside our design processWhat our clients asked us mostDesigning packaging that survives the shelf

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

Fixed prices and weekly demos keep you in control from start to finish. Our team has done this many times, so you never have to guess.
New

With min-width: 0

We test early with real users, so the final design works on the first day. Start in minutes and get help from a real person whenever you need it.
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 checklist for your next website launch
Looking back at a busy season
Doing
Five things we learned this year
What makes a brand memorable
Done
Five website mistakes that cost you leads
Our favourite tips for busy weeks

17Order summary address

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

Ethan Alvarez, 290 Station Street, Denver 75428, United States 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. We make good brands great2:02
  2. Stories told in pixels and motion3:40
  3. Brands that stand out and sell2:56

20Full text in a tooltip

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

Clients stay with us for years because we treat their brand like our own. Friendly people answer your questions quickly, by phone, chat or email.