Skip to content

Instantly share code, notes, and snippets.

@joeldrapper
Created January 18, 2013 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeldrapper/4563460 to your computer and use it in GitHub Desktop.
Save joeldrapper/4563460 to your computer and use it in GitHub Desktop.
Makes background images work 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; height:190px; width:554px;top:0;left:0;border:0;z-index:1;' src="http://www.postgoldforcash.com/system/assets/images/ticksBg.jpg"/>
<v:shape xmlns:v="urn:schemas-microsoft-com:vml" id="theText" style='behavior: url(#default#VML); display:inline-block;position:absolute; height:190px; width:554px;top:-5;left:-10;border:0;z-index:2;'>
<div>
<![endif]-->
<!-- This is where you nest a table with the content that will float over the image -->
<table>
<tr>
<td style="background: url('/image.png');"></td>
</tr>
</table>
<!-- This ends the nested table content -->
<!--[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