← CSS Support Index

Does CSS white-space Work in HTML Email?

Tested with the values `nowrap` and `pre`.

Quick Answer

Does white-space work in HTML email?

The CSS white-space property is supported in Gmail, Outlook (Mac / Web), Apple Mail, Yahoo! Mail, and others. It is NOT supported in Outlook (Windows). Always include a safe fallback for unsupported clients.

Which Email Clients Support CSS white-space?

CSS support for white-space across email clients

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

Notes

  • #1 Partial. Not supported with non Google accounts.
  • #2 Partial. `pre` value is not supported.

Frequently Asked Questions

Related CSS Properties

Test Your Email Now

Paste your HTML and see how it renders in clients that don't support
white-space.

Open Email Previewer

Building a new email instead of checking an existing one? MailViewr's Email Builder only lets you use CSS that's known to render across clients, so white-space can't sneak into your markup by accident. Open the Email Builder →