← CSS Support IndexDoes CSS
Does CSS :last-of-type Work in HTML Email?
Selects the last element of its type among siblings.
Quick Answer
Does :last-of-type work in HTML email?
The CSS :last-of-type property is supported in Outlook (Mac / Web), Apple Mail, Yahoo! Mail, Samsung Email, and others. It is NOT supported in Gmail, Outlook (Windows). Always include a safe fallback for unsupported clients.
Which Email Clients Support CSS :last-of-type?
CSS support for :last-of-type across email clients
| Email Client | Desktop | Mobile / Web | Notes |
|---|---|---|---|
| Gmail | ✗ No | ✗ No | — |
| Outlook (Windows) | ✗ No | ? | — |
| Outlook (Mac / Web) | ✓ Yes | ✓ Yes | — |
| Apple Mail | ✓ Yes | ✓ Yes | — |
| Yahoo! Mail | ✓ Yes | ✓ Yes | — |
| Samsung Email | ? | ✓ Yes | — |
| Thunderbird | ✓ Yes | ? | — |
| ProtonMail | ✗ No | ✓ Yes | — |
| Fastmail | ✓ Yes | ? | — |
Notes
- #1 Partial. Only supported on type selectors.
Frequently Asked Questions
Test Your Email Now
Paste your HTML and see how it renders in clients that don't support :last-of-type.