Skip to main content
CSS Functions

clamp

CSS function · 5 supported, 3 partial, 6 unsupported across 15 clients

The clamp() function locks a value between a minimum and maximum, with a preferred middle value. It is widely used in modern responsive web design but has limited email support — Apple Mail and modern Gmail Web honor it, while Outlook on Windows ignores it entirely.

Client Support

ClientCategoryEngineSupport
GmailwebmailGmail WebSupported
Gmail AndroidmobileGmail MobilePartial
Gmail iOSmobileGmail MobilePartial
Outlook 365webmailOutlook WebUnsupported
Outlook (New)desktopOutlook WebUnsupported
Outlook ClassicdesktopMicrosoft WordUnsupported
Outlook iOSmobileOutlook MobileUnsupported
Outlook AndroidmobileOutlook MobileUnsupported
Apple MaildesktopWebKitSupported
Apple Mail iOSmobileWebKitSupported
Yahoo MailwebmailYahooUnsupported
Samsung MailmobileSamsungPartial
ThunderbirddesktopGeckoSupported
HEY MailwebmailWebKitSupported
SuperhumandesktopBlinkUnknown

Client-by-client behaviour for clamp

Fully supports clamp (5): Gmail, Apple Mail, Apple Mail iOS, Thunderbird, HEY 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 (6): Outlook 365, Outlook (New), Outlook Classic, Outlook iOS, Outlook Android, Yahoo Mail. Plan fallbacks for these clients before relying on clamp in production sends.

Behaviour unverified in: Superhuman.

When to use clamp in email

  • Fluid typography that scales with viewport width while staying within readable bounds.
  • Responsive container padding that adapts to small and large screens.
  • Adaptive button sizing in modern marketing email templates.

Rendering behaviour and edge cases

  • Outlook on Windows ignores clamp() and uses the original CSS keyword fallback.
  • Gmail Web supports clamp() in recent Chromium versions; Gmail mobile is more conservative.
  • Browser-style fluid typography expectations don't always translate to email viewports.

Recommended fallback strategy

Provide a fixed pixel fallback declaration before clamp() so non-supporting clients still receive a sensible value. Keep the clamp() range conservative in email — extreme min/max values render unpredictably across mobile clients.

Fixes & Workarounds

Outlook 365

Unsupported

"clamp" is not supported in this email client.

Outlook (New)

Unsupported

"clamp" is not supported in this email client.

Outlook Classic

Unsupported

"clamp" is not supported in this email client.

Outlook iOS

Unsupported

"clamp" is not supported in this email client.

Outlook Android

Unsupported

"clamp" is not supported in this email client.

Yahoo Mail

Unsupported

"clamp" is not supported in this email client.

Gmail Android

Partial

"clamp" is not supported in this email client.

Gmail iOS

Partial

"clamp" is not supported in this email client.

Samsung Mail

Partial

"clamp" is not supported in this email client.

Related Features

Test your email across all 15 clients

Preview rendering, catch CSS issues, and get actionable fixes — free.

Try Emailens Free

Support data last updated Apr 27, 2026 · synced from caniemail.com via @emailens/engine.