PDA

View Full Version : Call to action link in mailtemplate



Flupke
02 Aug 2010, 06:06 AM
I am trying to add a call to action link inside a mailtemplate. It works fine in most popular mailclients, but ofcourse it doesn't work in Outlook 2007.

This is the code I'm using:


<a href="#" style="float:left; text-indent:7px; text-decoration:none; padding:8px 10px; font-weight:700; color:#ffffff; background:blue;">Call to action</a>

I know the problem is caused by the flawed implementation of floats in Outlook 2007. Using align="left" is a way to get around this, but this doesn't seem to work for links.

Here's how the link is rendered in Outlook 2003 and 2007:
http://img834.imageshack.us/img834/2757/ctaoutlook.jpg

michaelangrave
06 Aug 2010, 06:17 AM
Worst case scenario, I suppose you could add a spacer image, just matching the background colour and width of the required padding.

At least this will get things looking right across all email clients.