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!
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:
align="left"
attribute in a table works more consistently in major email clients, asfloat
has limited support.You can find several examples of fluid and float/align here.
You can use the technique seen here to force the email to stay at the desktop width on Gmail app. It is not a brilliant solution as everything will be quite small and it is definitely not responsive (quite the opposite).
But at least it will stop your layouts from breaking.
The trick is to add
to the widest part of the email
https://css-tricks.com/override-gmail-mobile-optimized-email/