<!-- v:rect bg for outlook -->
<snippet>
<content><![CDATA[
<!--[if (gte mso 9)|(IE)]><table width="${1:600}" cellpadding="0" cellspacing="0" border="0" align="${5:center}"><tr><td><![endif]-->
<table align="${5:center}" style="background-color: #fff; border-spacing: 0; margin: 0 auto; max-width: ${1:600}px; width: 100%;" class="outer">
<tr bgcolor="${3:#f3f3f3}">
<td height="${2:300}" class="one-column" style="background:url(${4}) no-repeat; background-size:cover; padding: 0; text-align: ${5:center};">
<!--[if gte mso 9]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width: ${1:600}px; height: ${2:300}px;">
<v:fill type="frame" src="${4}" color="${3:#f3f3f3}" />
<v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">
<![endif]-->
${0:Text_here!!!!}
<!--[if gte mso 9]>
</v:textbox>
</v:rect>
<![endif]-->
</td>
</tr>
</table>
<!--[if (gte mso 9)|(IE)]></td></tr></table><![endif]-->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>o-bg</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sublime snippet for fast paste background image in email (is it HACK)
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.