Gmail changes background-size property from cover to contain - fix?

Hi all,

As title and username state, gmail sucks and is pissing me off beyond belief. I know gmail doesn't accept background-size (that would make things too easy for us), so I'm using:

background: #4d463b url(header.jpg) no-repeat center center / cover;

The issue is that gmail changes cover to contain for some stupid reason. I've tried everything and can't find any suitable workaround. I can't be the only person to try using background-size:cover in email so I know there has to be a workaround for this somehow, I'm just not finding it.


gmailsucks, 1 year ago

Just to clarify, the email works fine in every single other device/browser (including all versions of Outlook). It's just gmail that is causing havoc.

talvins, 1 year ago

Hi, could you provide your code ? However, it's strange because none Outlook versions, nor Gmail and support background-size.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free