Skip to content
Fableova Co

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.

Every course is built around hands-on projects you can add to your portfolio. Thousands of students 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 Sofia Fischer and Mateo Mensah 31 min ago.

3Inbox preview

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

  • Kenji HaddadWhat employers look for in junior analysts – We keep things simple, so you can focus on what matters to you. Mentors review your projects and give feedback within two days.
  • Owen MorganHow to stay motivated when learning online – We keep things simple, so you can focus on what matters to you. Lifetime access means you can revisit lessons whenever you need a refresher.
  • Diego RossiWhat our students asked us most – Short quizzes after each lesson help new knowledge stick. 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-2740Instructors are working professionals who teach what they use every day.$361.04
#TX-2076Earn a certificate at the end of each course and share it with employers.$306.61
#PO-4460Our team has done this many times, so you never have to guess.$143.48

5Long file names

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

  • headlines-people-actually-click-final-version-2.docx626 KB
  • five-study-habits-that-actually-work-final-version-7.docx725 KB
  • how-we-build-a-course,-start-to-finish-final-version-2.docx377 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.

Freya Kim replied: The mobile app downloads lessons, so you can learn on the train.yesterday

8Equal card titles

Truncated titles keep a grid of cards the same height.

Building a portfolio that gets interviews: Learn on your schedule, with lessons that fit into a lunch break.

Mar 12, 2026

The small habits that make a big difference: We listen first, then build a plan around what you actually need.

Jan 7, 2026

Our favourite tips for busy weeks: Guided learning paths take you from beginner to job-ready step by step.

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

UX fundamentals Design edition
$153.00
Python basics Development edition
$127.00
Photography Lifestyle edition
$92.00
Digital marketing Marketing edition
$117.00

12Truncated chips

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

Headlines people actually clickHow to stay motivated when learning onlineWhat our students asked us mostFive study habits that actually work

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

Mentors review your projects and give feedback within two days. Every course is built around hands-on projects you can add to your portfolio.
New

With min-width: 0

We measure success by how many students come back and tell their friends. 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
Our most popular courses this year
How to learn a new skill in 30 days
Doing
A beginner's guide to getting started
How we build a course, start to finish
Done
What employers look for in junior analysts
From teacher to UX designer: a career story

17Order summary address

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

Arjun Harlow, 208 Maple Avenue, Dublin 68466, Ireland 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. The online school for busy people2:14
  2. Short courses, real results3:12
  3. Grow your career one lesson at a time4:10

20Full text in a tooltip

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

Lifetime access means you can revisit lessons whenever you need a refresher. We listen first, then build a plan around what you actually need.