Skip to main content
Emailens
CSS Functions

max

CSS function · 7 supported, 3 partial, 10 unsupported across 21 clients

As of Sep 2, 2026, max fails or degrades in 14 of 21 email clients, treat it as progressive enhancement, never structure.

  • 3/7 webmail, 3/6 desktop, 1/8 mobile clients support max fully.
  • Unsupported in Outlook 365, Outlook (New), Outlook Classic, Outlook iOS and 6 more.
  • Partial in Gmail Android, Gmail iOS, Samsung Mail, behavior differs from browsers, test before relying on it.
  • Outlook Classic (Word engine, supported to at least 2029) does not fully support max, and its replacement changes little here; see the deprecation diff.
  • Across all clients, only 6 of 298 tracked HTML/CSS features render identically everywhere.

Source: caniemail.com (MIT), via the Emailens engine. Last tested upstream May 7, 2021, synced by Emailens Sep 2, 2026.

The max() CSS function returns the largest of a set of values and is used to enforce a minimum. Like min() and calc(), it is a modern function with limited email support , Outlook on Windows ignores it, while Apple Mail and modern Gmail honor it.

Client Support

ClientCategoryEngineSupport
GmailwebmailGmail WebSupported
Gmail AndroidmobileGmail MobilePartialSee caveat 1
Gmail iOSmobileGmail MobilePartialSee caveat 1
Outlook 365webmailOutlook WebUnsupported
Outlook (New)desktopOutlook WebUnsupported
Outlook ClassicdesktopMicrosoft WordUnsupported
Outlook iOSmobileOutlook MobileUnsupported
Outlook AndroidmobileOutlook MobileUnsupported
Outlook for MacdesktopWebKitSupported
Apple MaildesktopWebKitSupported
Apple Mail iOSmobileWebKitSupported
Yahoo MailwebmailYahooUnsupported
Yahoo Mail AndroidmobileYahooUnsupported
Yahoo Mail iOSmobileYahooUnsupported
Samsung MailmobileSamsungPartialSee caveat 2
ThunderbirddesktopGeckoSupported
HEY MailwebmailWebKitSupported
Proton MailwebmailProtonSupported
AOL MailwebmailAOLUnsupported
FastmailwebmailFastmailUnsupported
SuperhumandesktopBlinkUnknown

Documented caveats (2)

  1. 1.Gmail Android, Gmail iOS: Partial. Not supported with non Google accounts.
  2. 2.Samsung Mail: Partial. Not supported with Microsoft accounts.

Caveats recorded by caniemail.com (MIT) and carried verbatim, one entry per wording rather than per client.

Client-by-client behaviour for max

Fully supports max (7): Gmail, Outlook for Mac, Apple Mail, Apple Mail iOS, Thunderbird, HEY Mail, Proton Mail.

Partial support (3): Gmail Android, Gmail iOS, Samsung Mail. Expect rendering quirks unique to each engine. Partial support typically means a subset of values, an ignored shorthand, or sanitizer-specific rewrites.

No support (10): Outlook 365, Outlook (New), Outlook Classic, Outlook iOS, Outlook Android, Yahoo Mail, Yahoo Mail Android, Yahoo Mail iOS, AOL Mail, Fastmail. Plan fallbacks for these clients before relying on max in production sends.

Behaviour unverified in: Superhuman.

When to use max in email

  • Enforcing a minimum padding regardless of fluid container size.
  • Ensuring a minimum font-size in fluid typography systems.
  • Forcing a minimum width on responsive button elements to keep them tappable on small screens.

Rendering behaviour and edge cases

  • Outlook on Windows ignores max() and falls back to the previous declaration.
  • Apple Mail supports max() across recent macOS and iOS releases.
  • max() expressions with mixed units behave inconsistently , prefer same-unit comparisons.

Recommended fallback strategy

Always supply a literal fallback before max() so Outlook receives a sensible default. Use max() as progressive enhancement layered on top of conservative pixel values.

Fixes & Workarounds

Outlook 365

Unsupported

"max" is not supported in this email client.

Outlook (New)

Unsupported

"max" is not supported in this email client.

Outlook Classic

Unsupported

"max" is not supported in this email client.

Outlook iOS

Unsupported

"max" is not supported in this email client.

Outlook Android

Unsupported

"max" is not supported in this email client.

Yahoo Mail

Unsupported

"max" is not supported in this email client.

Yahoo Mail Android

Unsupported

"max" is not supported in this email client.

Yahoo Mail iOS

Unsupported

"max" is not supported in this email client.

AOL Mail

Unsupported

"max" is not supported in this email client.

Fastmail

Unsupported

"max" is not supported in this email client.

Gmail Android

Partial

"max" is not supported in this email client.

Gmail iOS

Partial

"max" is not supported in this email client.

Samsung Mail

Partial

"max" is not supported in this email client.

Related Features

Check your own HTML for max

Paste your own, or run the sample below. Analyzed in this page, with no signup and nothing stored.

Zero-Friction Engine Preview

Test your max layout across 21 email clients

Preview rendering, catch CSS issues, and see how max displays across Outlook, Gmail, and Apple Mail. Free, no account needed.

Instant live preview · No signup required · 21 email engines

Last tested upstream: · Last synced by Emailens:

caniemail.com (MIT) records May 7, 2021 as the last time max was tested in a real client, 5 years before this sync. Syncing copies that result forward, it does not re-test it. Carried in @emailens/engine data v0.12.2.