Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail font color issue

I have a problem with the font color of the second email sent to a gmail address. I have the following syntax:

<p style="color:white">Dear Sir/Madam</p>

But in the next email, it adds a new span around the text forbidding me to control the style:

<p style="color:white"><span class="im">Dear Sir/Madam</span></p>

The problem is similar to the following question: Font Color in HTML Email - Gmail

However, in my case it is adding a span instead of just adding a class and therefore forbidding from adjusting the color. I tried using a different color (#FFFFFE) as well as !important but didn't solve the issue. As far as I know, CSS3 won't assist me as well since most things are not allowed in gmail.

How can I avoid having this span in my emails?

Edit: Attached an image that shows the color was overridden through !important but still appears purple. Color was overridden

like image 624
Sami Avatar asked Nov 01 '22 17:11

Sami


1 Answers

using inline styles, other styles are not accepted if more simply

like image 138
Alex Wilson Avatar answered Nov 13 '22 23:11

Alex Wilson