MW
0
Gmail Linking Email Addresses & Removing Inline Styles
I am coding up an email signature and having a headache getting my mailto links for the email address in the right color in Gmail.
Here is my code:
<a href="mailto:bobmail.com" target="_blank" style="text-decoration: none; color: #252525; color: #252525 !important;">
bob@bobmail.com
</a>
However when I view the code in Gmail I see the following:
<a href="mailto:bobmail.com" style="text-decoration:none;color:#252525;color:#252525!important" target="_blank">
</a>
<a href="mailto:bobmail.com" target="_blank">
bob@bobmail.com
</a>
So what its doing is detecting an email address and creating a new <a>
link for it, but this new <a>
tag doesn't have any of the styles the original one did.
How can I keep my links for email addresses the same color?
Thanks
Try removing the second 'color' call within the styling:
<a href="mailto:bobmail.com" target="_blank" style="text-decoration: none; color: #252525;">
bob@bobmail.com
</a>
Hello Michael,
I just tested your code in Gmail and it doesn't seem to create a new
<a>
like you see. Maybe it's the way you add this in your signature ? How are you doing this exactly ? Or maybe it's the fact that the "mailto:bobmail.com" is an incorrect link (it should be "mailto:bob@bobmail.com").