G-Mail ignores CSS

Asked

Viewed 387 times

1

Everybody, good afternoon, everybody!

The g-mail kind of ignores CSS in the emails I do, it doesn’t even show up in the emails, and sometimes when it does, it changes the class from what I need to a random class of them there. How can I get around that?

Thank you!

  • 1

    Not all CSS is accepted by email managers. You can’t build an email the same way you would a website.

  • I know, but I really need it. I’ll try to use linked CSS. Inline it accepts, but I can’t use inline right now.

1 answer

3


The problems you’re having, can be referenced with how you’re inserting CSS into your email marketing.

  • In some email clients, they do not open CSS within the <head>, thus the best option is to insert them into the <body> using the tag <style></style>
  • In other clients or by inserting class or id will advance, the best is to insert through the attribute style=""

But, after all, what goes for one client is not guaranteed to work on the other, IE, Gmail may work but Outlook does not. That’s why I recommend taking a look at these email marketing guides, you’ll get a better sense of what you can and can’t do in emails.

Mailchimp - Email Client CSS Support

Campaign Monitor - The Ultimate Guide to CSS

Browser other questions tagged

You are not signed in. Login or sign up in order to post.