Patrick
Patrick

Reputation: 2781

Color change after clicked anchor in Outlook html email

I would like to avoid the color change in an html email template when a anchor is clicked.

In Outlook, a white anchor get purple after it's clicked.

The code:

<table style="background-color: #404040; width: 100%;">
<tbody>
    <tr>
        <td>
            <table cellpadding="3" cellspacing="0" border="0" style="width: 100%; margin-bottom: 2px">
                <tbody>
                    <tr>
                        <td width="10px"></td>
                        <td><a href="http://www.izigo.pt" target="_blank" style="font-family: verdana,geneva,sans-serif; color: #D3D3D3; font-size: 10px; text-decoration: none;">Oficinas</a></td>                         
                        <td width="12px"></td>
                    </tr>
                </tbody>
            </table>
        </td>
    </tr>
</tbody>
</table>

Upvotes: 0

Views: 2939

Answers (2)

MadeOfTwoJays
MadeOfTwoJays

Reputation: 41

To whoever needs to read it in 2023 or later, try this:

<a href="#" style="color: #ffffff">
  <strong style="color: #ffffff, font-weight: normal;">
    Click Me
  </strong>
</a>

For some reason strong works.

Upvotes: 4

Josh Burgess
Josh Burgess

Reputation: 9567

Add this to your HTML:

<style>
a:visited {
  color: #FFFFFF; /* Or whatever white you're using */
}
</style>

It's just injecting CSS into your page to handle the a tag once it's been visited.

Upvotes: 3

Related Questions