Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gmail stripping link color from emails?

Tags:

html

anchor

gmail

Everything renders fine apart from link colors.. These are my links.

<a href="http://www.facebook.com.." style="color:#000000;text-decoration:none;font-weight:bold">Facebook</a>

<a href="http://www.twitter.com/..." style="color:#000000;">Twitter</a>

However, in gmail. These links are converted to this.

<a href="http://www.facebook.com.." style="text-decoration:none;font-weight:bold">Facebook</a>

<a href="http://www.twitter.com/..." style="">Twitter</a>

OK, so maybe gmail does this for all emails? I look around. Lots of blue links. I then open up a youtube message.

<a target="_blank" style="color:#e12e31;font-family:arial,verdana,sans-serif;text-transform:uppercase;text-decoration:none" href="...">Play all »</a>

Curious.. very curious. YouTube isn't having this problem that I am having. Can anyone else modify link colors in gmail when sending html emails? How are you doing it?

like image 217
JasonS Avatar asked Feb 02 '12 10:02

JasonS


3 Answers

I had a similar problem with links in Gmail, but only when color: #000000; it changed it to the default blue.

I changed the color to a very dark grey and it worked.

like image 155
Vasco Avatar answered Oct 08 '22 17:10

Vasco


GMail will change your links from black (#000000) to the default blue, presumably as an anti-spamming feature.

To get around this, just change the color of the font to (#000001), e.g.

<a href="#" style="color: #000001;">Click HERE</a>
like image 33
crmpicco Avatar answered Oct 08 '22 19:10

crmpicco


Combining the answers here worked like a charm for me, eg:

color: #000001 !important;

I hope we aren't helping spammers and such here...

like image 28
OZZIE Avatar answered Oct 08 '22 19:10

OZZIE