Selector or pseudo-class · data last changed 10 Nov 2026
:last-child in email clients
Works in 12 of 21. Not supported in Gmail, Gmail Android, Gmail iOS and 2 more. Partial in Outlook 365, Outlook (New) and Outlook for Mac. Untested in Superhuman.
Your reader in Outlook Classic sees the email without :last-child, even if it looks right where you tested it.
caniemail (MIT) via @emailens/engine 0.19.3
What to do instead in Outlook Classic
Mark the last item when the email is built. Either skip the divider for the final loop iteration, or add a class and an inline style to that one element. A pattern that never needs :last-child is to draw dividers as the top border of every item except the first, set inline by the template, so the end of the list needs no special case.
There is no drop-in fix for :last-child in Outlook Classic. Design so the email still reads without it.
No signup · Five clients free, Outlook Classic included · All 21 with an account
The checker needs a computer screen.
A free account opens all 21 clients and keeps your checks for 7 days. Create a free account →
Every account includes one free real-device check in classic Outlook and Apple Mail, after you verify your email and run one preview, while this month's free capacity lasts. How real-device checks work →
:last-child is not among the 24 features we have screenshotted on real installs. The ones we have →
All 21 clients, problems first
| Client | Support |
|---|---|
| Gmail | Not supported |
| Gmail Android | Not supported |
| Gmail iOS | Not supported |
| Outlook Classic | Not supported |
| Proton Mail | Not supported |
| Outlook 365 | Partial See caveat 1 |
| Outlook (New) | Partial See caveat 1 |
| Outlook for Mac | Partial See caveat 1 |
| Superhuman | Untested |
Works in 12: Outlook iOS, Outlook Android, Apple Mail and 9 more. Show all
| Client | Support |
|---|---|
| Outlook iOS | Works |
| Outlook Android | Works |
| Apple Mail | Works |
| Apple Mail iOS | Works |
| Yahoo Mail | Works |
| Yahoo Mail Android | Works |
| Yahoo Mail iOS | Works |
| Samsung Mail | Works |
| Thunderbird | Works |
| HEY Mail | Works |
| AOL Mail | Works |
| Fastmail | Works |
Caveats (1)
- 1. Outlook 365, Outlook (New), Outlook for Mac: Partial. Only supported on type selectors.
Caveats as recorded by caniemail (MIT), one entry per wording.
How :last-child behaves
:last-child matches the final element among its siblings. In email it is usually there to take the divider or bottom padding off the last item of a list. Support is wider than for :nth-child(): Apple Mail, Yahoo Mail, AOL, Samsung Email, Thunderbird, Fastmail, HEY and the Outlook apps for iOS and Android all apply it. Gmail and Outlook Classic do not, and Outlook (New), Outlook 365 and Outlook for Mac only apply it after an element name.
- Gmail, on the web and in its apps, does not support :last-child.
- Outlook Classic does not support it.
- Outlook (New), Outlook 365 and Outlook for Mac support it on type selectors only: td:last-child works, .item:last-child does not.
Questions
Does :last-child work in Gmail?
No. Gmail ignores :last-child on the web and in its apps. Remove the last divider in the template instead of in CSS.
Why does td:last-child work in Outlook 365 but .row:last-child does not?
Outlook (New) and Outlook 365 only support :last-child after an element name such as td or tr. Write the selector on the element, or style the last item inline.
Your next question
- Does :adjacent-sibling work in Outlook Classic?
Works in 16 of 21 · partial in 2 · not supported in 2 · 1 untested
- Does :child-combinator work in Outlook Classic?
Works in 16 of 21 · partial in 2 · not supported in 2 · 1 untested
- Does :general-sibling work in Outlook Classic?
Works in 16 of 21 · partial in 2 · not supported in 2 · 1 untested
- Does :universal-selector work in Outlook Classic?
Works in 16 of 21 · partial in 2 · not supported in 2 · 1 untested
- Does :chaining work in Outlook Classic?
Works in 14 of 21 · partial in 2 · not supported in 4 · 1 untested
- Does :first-child work in Outlook Classic?
Works in 12 of 21 · partial in 3 · not supported in 5 · 1 untested
Every feature in Outlook Classic · All email CSS features · What real installs show
Paste your email
Get new email CSS fixes by email.