Skip to content

Instantly share code, notes, and snippets.

@amjad-desai
Forked from abachuk/gist:4478258
Last active March 18, 2018 09:43
Show Gist options
  • Save amjad-desai/dc4b21bfbc9169715a0506638e908ed8 to your computer and use it in GitHub Desktop.
Save amjad-desai/dc4b21bfbc9169715a0506638e908ed8 to your computer and use it in GitHub Desktop.
Outlook background image hack
##The code is a fix to manage the email background image issue in Outlook
<!--[if gte mso 9]>
<v:image xmlns:v="urn:schemas-microsoft-com:vml" id="theImage" style='behavior: url(#default#VML); display: inline-block; position: absolute; width: 374px; height: 246px; top: 0; left: 130px; border: 0; z-index: 1;' src="/imgs/myPhoto.png" />
<v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style='behavior: url(#default#VML); display: inline-block; position: absolute; width: 374px; height: 246px; top: -5; left: 125px; border: 0; z-index: 2;'>
<div>
<![endif]-->
<table style="background: /imgs/myPhoto.png”>
</table>
<!--[if gte mso 9]>
</div>
</v:shape>
<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment