Background image in td for Outlook 2007

2.2k views Asked by At

I've looked at the question at background image on TD in Outlook 2007. I can't get a background image to display in a td element.

I've also looked at http://www.campaignmonitor.com/forums/viewtopic.php?id=3862 and tried it but no joy.

Only a fragment of my code:

<td height="100%" valign="top" background="myimage.gif" alt="" bgcolor="#FFFF00">
<!--[if gte mso 9]>
<v:image xmlns:v="urn:schemas-microsoft-com:vml" style='behavior: url(#default#VML); display:inline-block;width:51px;height:10px;position:absolute;top:0;left:0;border:0;z-index:-1;' src="myimage.gif" />
<![endif]-->

... td contents...

</td>

Any ideas?

2

There are 2 answers

0
edwardmlyte On BEST ANSWER

I eventually got around this by increasing the height of the image accordingly to make it fit. I didn't use VML at all.

0
unceus On

take out the inline behavior and display on the vml element (nice try, I tried that one too) and make sure this is in your header:

<head>
<xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/>
<style type="text/css">v\:* { behavior: url(#default#VML);}</style>
<?xml:namespace prefix = v />
</head>

I hope this saves someone the ~8 hours it took me to find