Remove anchor underline email signature

Go To StackoverFlow.com

6

I am developing custom email signatures for a client of mine, I am now at testing stage for GMail, Hotmail, Brinkster and so on.

I'm having a hard time trying to remove the underline the anchor is displaying, I do have " text-decoration: none;" on the anchor itself and nothing is working for either client however, Outlook renders fine.

Can anyone help? :-)

2012-04-03 21:08
by Filth


5

I think your issue may be that certain clients move anchor styles and text into a span and apply the style definitions to that instead.

<a href="/" style="color:black;">hello, world!</a>

becomes

<a href="/"><span style="color:black;">hello, world!</span></a>

Not 100% sure why they do this, but it's annoying. Sometimes changing to something like this works:

<a href="/" style="color:black;" href="/"><span style="color:black;">hello, world!</span></a>

But it's still a mixed bag and changing all the time. Unfortunately the only way to confirm that things always look right is to use an image.

2012-11-01 17:05
by This One Guy


2

You could also try adding !important to the style:

text-decoration: none !important;
2012-04-03 21:33
by E. Barnes
Tried that before posting here, still doesn't work :- - Filth 2012-04-03 21:47
After some more googling, it looks like many people have the same issue. Styling in email is a pain. This site has promise for bringing standards to email clients (but who knows how long that will take!) http://www.email-standards.org/ Sorry I wasn't more helpful! : - E. Barnes 2012-04-03 22:34
Haha yeah creating html signatures is a pain to render in all clients but thanks for the info buddy! :- - Filth 2012-04-03 23:24
I was inserting a link in my signature in Mozilla Thunderbird and your solution was just what I needed, thanks - lucaferrario 2014-04-08 09:44


1

 <a href="example.com" style="text-decoration:none">link text</a>

won't have an underline unless there is a higher priority css rule somewhere else.

2012-04-03 21:31
by David Carlisle
I have this already and no fix, I have removed the default Microsoft Signature styling for links etc and still not workin - Filth 2012-04-03 21:50
this works for hotmail but not gmai - shorif2000 2015-03-12 12:46