<td width="110" align="center" valign="top" style="color:#000000;">
<a href="https://example.com" target="_blank"
style="color:#000000; text-decoration:none;">BOOK NOW
</a>
</td>
I used this code to make a link in my HTML email. In browsers and Outlook it's working nicely, but in GMail, Hotmail, and ymail it shows links underlined.
Can anyone help me to get rid of this?
After half a day looking into this (and 2 years since this question was opened) I believe I have found a comprehensive answer to this.
(You need the text-underline property on the span inside the link and the font tag to edit the colour)
I added both declarations on the a href which worked in outlook and gmail apps. outlook ignores the !important and gmail needs it. Web versions of email work with both/either.
I think that if you put a span style after the
<a>
tag withtext-decoration:none
it will work in the majority of the browsers / email clients.As in:
Text decoration none was not working for me, then i found an email in outlook that did not have the line and checked the code:
This one is working for me.
You should write something like this.
In Windows 10 Mail, you might need to add these in your html head:
The 'a {text-decoration: none;}' fixed the underline problems :)