← CSS Support IndexDoes CSS
Does CSS vh unit Work in HTML Email?
Support for viewport height unit.
Quick Answer
Does vh unit work in HTML email?
The CSS vh unit property is supported in Gmail, Outlook (Mac / Web), Apple Mail, Yahoo! Mail, and others. It is NOT supported in Outlook (Windows), Fastmail. Always include a safe fallback for unsupported clients.
Which Email Clients Support CSS vh unit?
CSS support for vh unit across email clients
| Email Client | Desktop | Mobile / Web | Notes |
|---|---|---|---|
| Gmail | ✓ Yes | ✓ Yes | — |
| Outlook (Windows) | ✗ No | ? | — |
| Outlook (Mac / Web) | ✓ Yes | ✓ Yes | — |
| Apple Mail | ✓ Yes | ~ Partial | — |
| Yahoo! Mail | ✓ Yes | ✓ Yes | — |
| Samsung Email | ? | ✓ Yes | — |
| Thunderbird | ✓ Yes | ? | — |
| ProtonMail | ✓ Yes | ✓ Yes | — |
| Fastmail | ✗ No | ? | — |
Notes
- #1 Buggy. Can affect the preview window size, meaning content can get lost.
- #2 Buggy. Value resolves to zero
Frequently Asked Questions
Related CSS Properties
Test Your Email Now
Paste your HTML and see how it renders in clients that don't support vh unit.