Results 1 to 2 of 2

Thread: Call to action link in mailtemplate

  1. #1
    Join Date
    Aug 2010
    Posts
    2

    Call to action link in mailtemplate

    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:

    HTML Code:
    <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

  2. #2
    Join Date
    Aug 2009
    Location
    Lutterworth, Leicester
    Posts
    161
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •