Liam Coates
Liam Coates

Reputation: 495

Why does an HTML link appear blue in Outlook 2010?

I want to fix this link appearing in the color blue, when it should be white. It happens in outlook 2010.

<span style="font-family: Arial; font-size: 10px;">
    You are subscribed with email address
    <font style="color: rgb(255,255,255);"><%user.Email%> </font>
    <a href="<%unsubscribe_link_text%>"
        style="color: rgb(174, 215, 51) ! important;">
        <font style="color: rgb(255,255,255);">Click here</font>
    </a> to unsubscribe.
</span> 

Can anyone see whats wrong with that and help me? :)

Upvotes: 2

Views: 15097

Answers (4)

JoeD
JoeD

Reputation: 26

Try change this style="color: rgb(174, 215, 51) ! important; to style="color: #ffffff";

Upvotes: 1

Javier Salinas
Javier Salinas

Reputation: 33

try with

<span style="font-family: Arial; font-size: 10px;">
You are subscribed with email address
<font style="color: rgb(255,255,255);"><%user.Email%> </font>
<a href="<%unsubscribe_link_text%>"
    style="color: #ffffff ! important;">
    <span style="color: #ffffff;">Click here</span>
</a> to unsubscribe.
</span> 

notice the span inside the a

Upvotes: 3

JIbber4568
JIbber4568

Reputation: 839

I've always set my colours in the style sheet against the a tag as follows and should work fine in Outlook.

a:link {
color: #666666;
}

a:visited {
color: #666666;
}

a:active {
color: #666666;

Upvotes: 2

Diodeus - James MacFarlane
Diodeus - James MacFarlane

Reputation: 114417

Try using hex colors instead of RGB.

Master guide: http://www.campaignmonitor.com/css/

Upvotes: 0

Related Questions