Skip to content
Rallyix 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.

Thousands of students already trust us, and we work hard to keep it that way. Every detail is handled by people who care about getting it right.

2Inline-block inside a sentence

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

Last edited by Luna Lindqvist and Mia Larsen just now.

3Inbox preview

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

  • Jonah MensahWhat employers look for in junior analysts – Start in minutes and get help from a real person whenever you need it. Friendly people answer your questions quickly, by phone, chat or email.
  • Diego AlvarezOur most popular courses this year – Try the first lesson of any course for free before you decide. Our team has done this many times, so you never have to guess.
  • Samir DuarteA beginner's guide to getting started – Lifetime access means you can revisit lessons whenever you need a refresher. Earn a certificate at the end of each course and share it with employers.

4Table cell notes

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

OrderNoteTotal
#ORD-5006Study groups and a friendly forum keep you motivated along the way.$221.14
#ORD-6593Short quizzes after each lesson help new knowledge stick.$282.85
#ORD-4574Every course is built around hands-on projects you can add to your portfolio.$220.85

5Long file names

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

  • looking-back-at-a-busy-season-final-version-8.docx341 KB
  • how-to-choose-the-right-course-final-version-2.docx422 KB
  • what-our-students-asked-us-most-final-version-9.docx828 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.

Priya Whitaker replied: The mobile app downloads lessons, so you can learn on the train.41 min ago

8Equal card titles

Truncated titles keep a grid of cards the same height.

How to choose the right course: We measure success by how many students come back and tell their friends.

Jan 1, 2026

How we build a course, start to finish: Guided learning paths take you from beginner to job-ready step by step.

May 29, 2026

Five things we learned this year: Short quizzes after each lesson help new knowledge stick.

Dec 24, 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
$120.99
Data analysis Development edition
$197.00
Video editing Design edition
$106.00
Brand design Design edition
$136.00

12Truncated chips

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

How to learn a new skill in 30 daysBuilding a portfolio that gets interviewsLooking back at a busy seasonWhat employers look for in junior analysts

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. Study groups and a friendly forum keep you motivated along the way.
New

With min-width: 0

Instructors are working professionals who teach what they use every day. The mobile app downloads lessons, so you can learn on the train.
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
From teacher to UX designer: a career story
What our students asked us most
Doing
A beginner's guide to getting started
How to stay motivated when learning online
Done
Our most popular courses this year
Our favourite tips for busy weeks

17Order summary address

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

Hana Nguyen, 365 Harbour Road, Copenhagen 29165, Denmark 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. Learn by doing, not just watching5:55
  2. The online school for busy people2:05
  3. Skills employers are looking for5:25

20Full text in a tooltip

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

Career coaches help with your CV, portfolio and interview practice. Learn on your schedule, with lessons that fit into a lunch break.