-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<td>
not stacking in Outlook iOS
#78
Comments
<td>
not stacking in Outlook iOS
Shouldn’t most be using inline <div> for this sort of content anyway to ensure proper stacking w/o media queries?
|
This isn't about how people should code their emails 🙂 Coding your email in a certain way does not mean that an email client will suddenly start preserving the |
@pbiolsi you probably meant hybrid layouts where shadow tables enforce position side-by-side. That's a very viable alternative, however, it weighs by magnitude more compared to Imho this ticket is a proper addition to the list and is very well-written. Hopefully will nudge EoA. |
to illustrate what Cosmin said, here's latest Email on Acid device list — notice the Outlook we talk about is missing, there's only older iOS version (which imho is irrelevant as a test platform because iOS 11.4 comprise 1.2% of all i-devices — source https://gs.statcounter.com/ios-version-market-share/mobile-tablet/worldwide): |
EoA's iOS Outlook app is seriously outdated. I asked them about it a few months ago and they replied they use version 2.51.1. (Current version is 4.29.0.) Also, in the Outlook app, this only happens when using an Outlook-alike email address. If you use a third party email address, your doctype will be respected. See https://www.caniemail.com/search/?s=doctype#html5-doctype-cite-note-1 |
I'm under the impression that this is fixed. My test code from caniemail shows an HTML5 doctype support, whether you're using a Gmail or an Outlook account in the Outlook iOS app. Anyone else can confirm ? Edit: Upon further testing, looks like the Outlook apps on iOS are now forcing the HTML5 doctype, even if you send your email without a doctype. |
The Outlook apps on iOS and Android now force an HTML5 doctype. See also hteumeuleu/email-bugs#78
Looks like WebKit is changing its own behavior regarding this: WebKit/WebKit@840ec41 |
Problem
Outlook iOS removes the
doctype
, which means it renders it in WebKit quirks mode (1, 2).Since
display: block;
does not work on<td>
in quirks mode, you cannot stack them on mobile through@media
queries.Solution
A workaround is to use
<th>
instead -display: block;
works on this element:However, one must make sure to reset the
font-weight
andtext-align
which default tobold
andcenter
in a<th>
element.Other notes
Looking at the list from Which doctype should you use in HTML emails, it sounds like
<td>
can't stack when usingdisplay: block;
in the following clients, either:Btw @hteumeuleu, if possible maybe update that table to reflect current Outlook iOS situation.
Note that stacking does work in Outlook in iOS 11 (what Email on Acid uses), but it does not in the latest version (13.3.1)
The text was updated successfully, but these errors were encountered: