How to prevent visited links turning purple in HTML emails


Normally we do not prefer links turning purple in an HTML email. Let's examine how this can be achieved. 



It is really a hack and a tricky one. One method is to reinforce font colour multiple times. In the example below, I used inline style 'color:#dd091f;' three times. 

<a><font><span>Link 1</span></font></a> 

Normally this works well in many email platforms including Emarsys. When I tried in Insider (useinsider.com) platform, it did not work. Insider has ready made content blocks which are easy to manipulate. When you use custom HTML content block, the general rules won't apply. 

So I had to use additional reinforcement which is a tricky one. I used <strong> and applied inline colour I wanted. This left the font-weight bold. I did not want Bold link. So had to use 'font-weight: normal;' 

So the block became 

<a><font><span><strong>Link 1</strong></span></font></a> 


See the complete code here. 

<td align="center"><a href="#" target="_blank" style="font-family: Arial, Helvetica, sans-serif; font-size:14px ; color:#dd091f; font-weight: normal; text-decoration: none; word-break: keep-all;">  <font  style="font-family: Arial, Helvetica, sans-serif; font-size:14px ; color:#dd091f; font-weight: normal; text-decoration: none; word-break: keep-all;"><span style="font-family: Arial, Helvetica, sans-serif; font-size:14px ; color:#dd091f; font-weight: normal; text-decoration: none; word-break: keep-all;"><strong style="color:#dd091f; font-weight: normal;">Link 1</strong></span></font></a></td>

Cool!

Comments

Popular posts from this blog

How to select and cut out an image in Krita

Transform and Stretch an image in Krita

Joomla error: Your site may not have been upgraded completely