Responsive emails on Gmail app (Android)
There is no workaround using media queries as they can't be inlined. Unfortunately there is no solution for Gmail regarding responsive email (assuming responsive=media queries).
Here are the alternatives:
- Fluid layout - A percentage based layout - usually a single column email that is 100%. You can add max-width workarounds to limit its width on desktops. This is 100% supported in all major clients and is the best technique for HTML email in my opinion.
-
Aligned tables - this is more 'adaptive' than responsive. Works the same as floating divs. HTML's
align="left"
attribute in a table works more consistently in major email clients, asfloat
has limited support. - Keep to the left - Simply design your email with all the important stuff to the left side. Devices will always show the left most 300 or so pixels, so a split column, text left, image right layout may be appropriate.
You can find several examples of fluid and float/align here.
user1370288
Updated on June 04, 2022Comments
-
user1370288 almost 2 years
I have created a responsive email template which works in all web clients, all versions of outlook, apple mail, thunderbird, iOS, HTC's 'Mail' app and nearly everything else minus Lotus notes.
Is does not work forthe Gmail app on Android. I am pretty sure this is because gmail strips out all the css in header (which contains the media query) so it to show the standard web version but the window is mobile size, so it shows about 300px half the email. Is there anyway to force it to use the media query? Failing that is there a way to change viewport? What would be the best fall back option?
Thanks!
-
user1370288 over 11 yearsCame to the same conclusion :/
-
Joel Brewer almost 10 yearsUnfortunately this is still the case.