edwardmlyte
edwardmlyte

Reputation: 16577

Background image in td for Outlook 2007

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?

Upvotes: 0

Views: 2273

Answers (2)

edwardmlyte
edwardmlyte

Reputation: 16577

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

Upvotes: 0

unceus
unceus

Reputation: 237

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

Upvotes: 1

Related Questions