4

I send responsive HTML emails with my website, with media queries, but in Gmail / Inbox, max-width in the media query refers to the browser viewport, instead of the HTML email.

So, on every other mail client, my emails switch to mobile display under 600px, in Gmail / Inbox, this comportement is broken.

Do you have a solution to make the media query take as viewport the mail viewport instead of the browser viewport ?

HeavyNounours
  • 403
  • 3
  • 17

1 Answers1

3
  1. Recommended approach: <meta name=viewport content="width=device-width, initial-scale=1">
  2. Avoid minimum-scale, maximum-scale, user-scalable.
richardev
  • 976
  • 1
  • 10
  • 33