Skip to content
Cora 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 members already trust us, and we work hard to keep it that way. Real people answer your questions around the clock, every day of the year.

2Inline-block inside a sentence

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

Last edited by Hana Morgan and Tariq Carter 38 min ago.

3Inbox preview

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

  • Maya WhitakerLooking back at a busy season – We measure success by how many members come back and tell their friends. We keep things simple, so you can focus on what matters to you.
  • Ravi AlvarezFive ways to improve your cash flow – Start in minutes and get help from a real person whenever you need it. Every payment appears instantly, with receipts matched automatically.
  • Ivy OkaforBudgeting basics for small teams – Issue virtual and physical cards to your team with limits you control. We listen first, then build a plan around what you actually need.

4Table cell notes

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

OrderNoteTotal
#PO-8949Open a business account online in about ten minutes, with no branch visit.$224.60
#PO-3953Cash flow forecasts show where you will be next month, not just today.$176.13
#ORD-7741Payroll runs on time, with tax and pension payments handled for you.$152.99

5Long file names

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

  • five-things-we-learned-this-year-final-version-9.docx398 KB
  • the-small-habits-that-make-a-big-difference-final-version-4.docx257 KB
  • what-to-look-for-in-a-business-account-final-version-7.docx433 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.

Theo Quinn replied: Invoices go out with a payment link, so customers can pay you in one click.just now

8Equal card titles

Truncated titles keep a grid of cards the same height.

Our favourite tips for busy weeks: Our team has done this many times, so you never have to guess.

Oct 17, 2025

The small habits that make a big difference: Friendly people answer your questions quickly, by phone, chat or email.

Aug 25, 2026

How we keep your money safe: Your money is protected by bank-grade security and regulated partners.

Jan 16, 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.

Business loan Savings edition
Free
Virtual card Cards edition
Free
Payroll module Payroll edition
$32.00
Tax reserve Savings edition
Free

12Truncated chips

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

How to close your books faster every monthBudgeting basics for small teamsFive things we learned this yearWhat our members asked us most

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

Open a business account online in about ten minutes, with no branch visit. Accounting sync keeps your books up to date without manual exports.
New

With min-width: 0

Invoices go out with a payment link, so customers can pay you in one click. We listen first, then build a plan around what you actually need.
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
Getting paid on time: invoice tips that work
Paying international suppliers without high fees
Doing
How to choose the right account
Looking back at a busy season
Done
How a coffee roaster cut card fees by a third
Five ways to improve your cash flow

17Order summary address

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

Mateo Kim, 111 Station Street, Austin 61777, 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. Business banking without the paperwork3:34
  2. One account for every currency5:16
  3. Spend smarter, close the books faster2:15

20Full text in a tooltip

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

Send and receive money in more than 30 currencies at fair exchange rates. Real people answer your questions around the clock, every day of the year.