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