
0
Help With VML To Make It Look Decent On Outlook
Here is a what the top of my email should look
and this is how it currently looks in outlook 2010
Here is my code:
<tr>
<td style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;"><table class="outer" align="center" style="border-spacing:0;font-family: Arial, sans-serif,'Lato';color:#ffffff;Margin:0 auto;width:100%;max-width:600px;">
<tr>
<td id="houdini" style=" background-repeat:no-repeat; background-color:#BDA694" background="http://static.cdn.responsys.net/i5/responsysimages/content/greensmoke/EG_image1c.jpg" bgcolor="#BDA694" width="600" height="151" valign="top">
<!--[if gte mso 9]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:600px;height:151px;">
<v:fill type="tile" src="http://static.cdn.responsys.net/i5/responsysimages/content/greensmoke/EG_image1c.jpg" color="#3A8C5C" />
<v:textbox inset="0,28px,0,0" style=" max-width:380px;margin-top:28px; background-color:#39865A;line-height:58px; font-size:18px;color:#ffffff; text-align:center;font-family: Arial, 'Helvetica Neue', Helvetica,'Lato',sans-serif;" >
<![endif]-->
<div id="houdini1" style=" width:100%; max-width:380px;margin-top:28px; background-color:#39865A;line-height:58px; font-size:18px;color:#ffffff; text-align:center;font-family: Arial, 'Helvetica Neue', Helvetica,'Lato',sans-serif;"><strong>Evergreen™ is Here in Limited Supply </strong></div>
<!--[if gte mso 9]>
</v:textbox>
</v:rect>
<![endif]-->
</td>
You're collective help is very appreciated.
Thank you all
Put it in a table not a div. Add
bgcolor="#39865A
to the table cell. Set height on the table cell. Align text via align and vertical align not text-align. Align table cell left in td parent.the whole thing is using a td bg image I am not sure if i can put a table inside a vml rect.
the basic code is based on stig's bg images tool
You can.
like so
VML stuff
DIV open
Table TR TD open
Content
Table TR TD close
DIV close
VML STUFF close
Or even without the divs. try it
You can also just put the background on the parent table cell. shouldn't make a difference
i'll give it a whirl.
Thanks!