Skip to content

Instantly share code, notes, and snippets.

@abachuk
Created January 7, 2013 20:49
Show Gist options
  • Save abachuk/4478258 to your computer and use it in GitHub Desktop.
Save abachuk/4478258 to your computer and use it in GitHub Desktop.
Outlook background image hack
<!--[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]-->
@amjad-desai
Copy link

Worked like Magic.. thanks ..

@AlecsanderPaulo
Copy link

Greetings.

You provide me with enough.

I got what I wanted with the images.

However, I need to try to overlay a text, and this method does not overlap.

Help me.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment