MailViewr - Free HTML Email Preview Tool
← CSS Support Index

Does CSS ::first-line Work in HTML Email?

Applies styles to the first line of text in a block-level element.

Quick Answer

Does ::first-line work in HTML email?

The CSS ::first-line property is supported in Apple Mail, Yahoo! Mail, Samsung Email, Thunderbird, and others. It is NOT supported in Gmail, Outlook (Windows). Always include a safe fallback for unsupported clients.

Which Email Clients Support CSS ::first-line?

CSS support for ::first-line across email clients

Email ClientDesktopMobile / WebNotes
Gmail✗ No✗ No
Outlook (Windows)✗ No?
Outlook (Mac / Web)~ Partial✗ No
Apple Mail✓ Yes✓ Yes
Yahoo! Mail✓ Yes✓ Yes
Samsung Email?✓ Yes
Thunderbird✓ Yes?
ProtonMail✗ No✓ Yes
Fastmail✓ Yes?

Notes

  • #1 Not supported with non Outlook accounts.
  • #2 Partial. Only supported on type selectors.

Frequently Asked Questions

Test Your Email Now

Paste your HTML and see how it renders in clients that don't support
::first-line.

Open Email Previewer