Community Forum

Over the years we have built up a community of email marketers, coders and designers that live and breathe email.

Use the Email on Acid Forum like your virtual water cooler: Stop by to discuss email code, quirky clients and fixes and post your issues (with an example of the code) for our community to offer its assistance.

 
   
Gmail not showing style classes

cxdarlach

Newbie
Total Posts:  1
Posted: 27 February 2017 06:34 AM

Hi,

I did a test using gmail official example (https://developers.google.com/gmail/design/css) :

<html>
  <head>
  <style>
    .colored {
      color: blue;
    }
    #body {
      font-size: 14px;
    }
  </style>
  </head>
  <body>
  <div id=‘body’>
    Hi Pierce,
    This text is blue.</p=>
    Jerry
  </div>
  </body>
</html>

In “emailonacid” the mail is showing correctly but If I send this html to my gmail the style class is not showing. Any idea why is this happening?


 

Alex Ilhan

Avatar
Administrator
Total Posts:  210
Posted: 05 March 2017 11:11 PM
[ # 1 ]

Hi cxdarlach,

Could you confirm the device and version of Gmail you’re testing?

Many thanks,
Alex