Table align RIGHT within VML textbox???

Hi,

Does anyone know how to align a table right within a VML textbox? Left and center work fine but Right seems to get ignored....

Heres and example of the code

<table width="600" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td bgcolor="#DDDDDD" style="background-image: url('http://i.imgur.com/XCnBXwP.png');" background="http://i.imgur.com/XCnBXwP.png" height="92" valign="top"><!--[if gte mso 9]>
  <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:600px;height:92px;">
    <v:fill type="tile" src="http://i.imgur.com/XCnBXwP.png" color="#7bceeb" />
    <v:textbox inset="0,0,0,0">
  <![endif]-->
           
            <div>
                <table width="300" border="0" cellpadding="0" cellspacing="0" align="right">
                    <tr>
                        <td bgcolor="#FF00FF" align="right" style="font-family:Arial, Helvetica, sans-serif; font-size:20px; font-weight:bold;"> | This is test text | </td>
                    </tr>
                </table>
            </div>
           
            <!--[if gte mso 9]>
    </v:textbox>
  </v:rect>
  <![endif]--></td>
    </tr>
</table>

zerocents zerocents, 2 years ago

This has been bugging me forever as well, so I finally decided to get to the bottom of it.

For whatever reason Word doesn't like align on tables inside VML shapes. Do this instead:

<div><div align="right">
    <table width="300" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td bgcolor="#FF00FF" align="right" style="font-family:Arial, Helvetica, sans-serif; font-size:20px; font-weight:bold;"> | This is test text | </td>
        </tr>
    </table>
</div></div>

Yes, you need both divs, and it won't work if you also put align on the table. Omitting align could affect other mail clients, so you might want to test this.


Michael Muscat

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098