Outlook 2007 doesn't support id="foo" link destinations

Good grief. I've just realised that Outlook 2007 doesn't support skip/jump link destinations based upon id="foo".

For example, in my template I have a link at the top:

<a href="#list_manager">Skip to mailing list info and options</a>

...to the mailing list info and options at the bottom:

<p id="list_manager">This email newsletter is brought to you by&hellip;</p>

It seems that this doesn't work in Outlook 2007 and I have to use an empty named anchor instead:

<a name="list_manager"></a>
<p id="list_manager">This email newsletter is brought to you by&hellip;</p>

Anyone else found this to be true?

Jonathan Schofield

unnu, 8 years ago

Yup I found that also! What I do for each of my campaigns is put this for the link at the top:

<a href="#jumpToSection">MTV Welcomes...</a>

And then this for where the email should jump to:

<a name="jumpToSection" id="jumpToSection" style="color:#ffffff;">.</a>

I put a full stop between the anchor and style its colour to match that of the background colour, because in some testing environments I found that even a blank <a> tag sometimes didn't work - there had to be something between the tags.

watershed, 8 years ago

Thanks, unnu. Worth knowing. Would a non-breaking space work instead?

<a name="foo" id="foo">&nbsp;</a>
unnu, 8 years ago

Yea possibly - I don't see why not. I haven't tested that solution - but we both know how unpredictable Outlook 07 is and so I would recommend testing it. If you give it a go let me know the results. I'll test it in my next campaign.


watershed, 8 years ago

Will do.

On another point of detail...

In light of the above, I now use the name attribute and id attribute on separate elements. So instead of:

<a name="foo" id="foo">&nbsp;</a>

I might have something like:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <td id="foo">
      <a name="foo">&nbsp;</a>

I can then use the id to target styles that CM converts to inline styles.

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free