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, 7 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, 7 years ago

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

<a name="foo" id="foo">&nbsp;</a>
unnu, 7 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, 7 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.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free