← CSS Support Index

Does CSS object-fit Work in HTML Email?

The `object-fit` CSS property sets how the content of a replaced element, such as an `<img>` or `<video>`, should be resized to fit its container.

Quick Answer

Does object-fit work in HTML email?

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

Which Email Clients Support CSS object-fit?

CSS support for object-fit across email clients

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

Notes

  • #1 Partial. Not supported with non Google accounts.

Frequently Asked Questions

Test Your Email Now

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

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 object-fit can't sneak into your markup by accident. Open the Email Builder →