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.

Earn a certificate at the end of each course and share it with employers. Clear prices, honest advice and no surprises along the way.

2Inline-block inside a sentence

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

Last edited by Elena Kowalski and Aria Silva 49 min ago.

3Inbox preview

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

  • Ruby MensahOur favourite tips for busy weeks – Start in minutes and get help from a real person whenever you need it. Learn on your schedule, with lessons that fit into a lunch break.
  • Kenji FischerOur most popular courses this year – Short quizzes after each lesson help new knowledge stick. Guided learning paths take you from beginner to job-ready step by step.
  • Mia RossiWhat our students asked us most – Try the first lesson of any course for free before you decide. We keep things simple, so you can focus on what matters to you.

4Table cell notes

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

OrderNoteTotal
#PO-6535Thousands of students already trust us, and we work hard to keep it that way.$246.79
#TX-8166We listen first, then build a plan around what you actually need.$191.71
#ORD-5862Career coaches help with your CV, portfolio and interview practice.$246.88

5Long file names

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

  • five-study-habits-that-actually-work-final-version-5.docx464 KB
  • how-to-choose-the-right-course-final-version-9.docx171 KB
  • what-employers-look-for-in-junior-analysts-final-version-6.docx212 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.

Diego Delgado replied: Every detail is handled by people who care about getting it right.16 hours ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

Five things we learned this year: Mentors review your projects and give feedback within two days.

Nov 1, 2025

What our students asked us most: Start in minutes and get help from a real person whenever you need it.

Jul 25, 2026

The small habits that make a big difference: Instructors are working professionals who teach what they use every day.

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

Digital marketing Marketing edition
$126.00
Leadership skills Business edition
$171.99
Python basics Development edition
$114.99
Brand design Design edition
$135.00

12Truncated chips

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

Building a portfolio that gets interviewsOur favourite tips for busy weeksOur most popular courses this yearHow to choose the right course

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

Thousands of students already trust us, and we work hard to keep it that way. Learn on your schedule, with lessons that fit into a lunch break.
New

With min-width: 0

We listen first, then build a plan around what you actually need. Career coaches help with your CV, portfolio and interview practice.
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 employers look for in junior analysts
From teacher to UX designer: a career story
Doing
Five study habits that actually work
A beginner's guide to getting started
Done
How we build a course, start to finish
Looking back at a busy season

17Order summary address

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

Owen Hughes, 442 Station Street, Porto 22757, 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. Short courses, real results4:06
  2. Learn by doing, not just watching4:42
  3. Knowledge that moves you forward4:58

20Full text in a tooltip

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

Study groups and a friendly forum keep you motivated along the way. Short quizzes after each lesson help new knowledge stick.