Skip to content

Instantly share code, notes, and snippets.

@revelt
Created April 18, 2018 03:29
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 revelt/2412138ca045fe879d1851ce6b1b461c to your computer and use it in GitHub Desktop.
Save revelt/2412138ca045fe879d1851ce6b1b461c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>vml test</title>
</head>
<body>
<center>
<table width="120" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td background="https://i.imgur.com/YJOX1PC.png" bgcolor="#7bceeb" width="120" height="92" valign="top">
<!--[if gte mso 9]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:120px;height:92px;">
<v:fill type="tile" src="https://i.imgur.com/YJOX1PC.png" color="#7bceeb" />
<v:textbox inset="0,0,0,0">
<![endif]-->
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="font-size: 40px; mso-line-height-rule:exactly; line-height: 80px; padding-left: 45px;">
R.
</td>
</tr>
</table>
</div>
<!--[if gte mso 9]>
</v:textbox>
</v:rect>
<![endif]-->
</td>
</tr>
</table>
</center>
</body>
</html>
@revelt
Copy link
Author

revelt commented Apr 18, 2018

Here's a test of email template where table with padding-left is within Outlook VML background cell.

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