Gmail doesn’t allow backgrounds (mostly)

Gmail doesn’t allow backgrounds (mostly)

If you include any reference to a URL, your entire declaration will be ignored.

For example:

background: #000;  /*This will be accepted */ 

 

background: #000 url(https://www.test.com/test.jpg); /* This entire line will be ignored */ 

With that said, if you ever want to back up your background image with a colour, be sure to do it within a different inline CSS declaration.

For example:

<td style=” background: #000;  background: #000 url(https://www.test.com/test.jpg);”> 

Another option is to use the “background” attribute within your TDs.

<td background=“http://www.test.com/test.jpg” bgcolor=”#eeeeee”>

 

 

Author

  • Rogerio da Silva

    Rogerio da Silva is a Brazilian who lives in the UK for a little over two decades. He is the owner of a test consulting and outsources services for software development. He likes to blog, write and create content that teaches others how to live a better life.  He loves reading biographies of successful authors and dream builders because they inspire him to keep creating!
    You can contact Rogerio for anything related to Business & Test Analyst | Microsoft Dynamics 365 CRM | QA | Agile | Manual | Integration & Automation | DevOps | API | Cloud | AI | IoT | CRM | Website Consulting | Email Consulting | Facebook Ads | Social Media Marketing Plan | Sales Funnel | Looking for Scalable Services? InShore, OffShore or Hybrid. Interested? Ask me how we can help.

Leave a reply

Publication

Now available on amazon prime

eBook (Amazon)

The Testers Book - An Unconventional Way to Software Testing - Revised Edition

Paperback (Lulu.com)

Podcast

Certifications