Table won't right-align in Outlook

Tom_Kerlin2
Level 8

Table won't right-align in Outlook

Hi,

I'm sending samples to my outlook email and my table keeps showing up as left-aligned when it should be right-aligned.  But when I preview email in Marketo, the table is right-aligned and when I send to my gmail the table is right-aligned. Outlook doesn't seem to accept floats, so I used <table align= "right;"> but it didn't help.  I can't remove the "float: right" element either in Marketo because it immediately will push table all the way to the left in the editor view.

Is there another way to approach this?

Thanks,

Tom

Tom Kerlin
8 REPLIES 8
Anonymous
Not applicable

Re: Table won't right-align in Outlook

You will probably need some special HTML code to handle this.  I would research Outlook optimized HTML.  Sorry I don;t have more info for you

Ravi_Ansal2
Level 6

Re: Table won't right-align in Outlook

Hi Tom Kerlin,

Share the code. I think i can help you with this.

Tom_Kerlin2
Level 8

Re: Table won't right-align in Outlook

Hi Ravi,

Below is code for table I want to right-align:

pastedImage_0.png

Tom Kerlin
Ravi_Ansal2
Level 6

Re: Table won't right-align in Outlook

Hi Tom Kerlin

It would be easier if you share the whole text code instead of a image. As i was unable to test on this code i have tried something on my on.

I would suggest you to replace Div with Table. as it works the same way as a <td> tag when it comes to email design.

I tried the below code and it it working fine on both gmail and outlook.

<table  width="800">

<tr><td>

<table align="right" width="200px; ">

<tr><td style="text-align:right">column1</td><td>column2</td></tr>

</table>

</td></tr>

</table>

Hope this helps or provide me the code i will correct it.

Thanks

Ravi Ansal

Anonymous
Not applicable

Re: Table won't right-align in Outlook

Try applying align="right" to the cell the table is within. I often have best results with outlook when applying styles to cells only, versus tables or rows.

<table  width="800">

<tr><td align="right" >

<table width="200px; ">

<tr><td style="text-align:right">column1</td><td>column2</td></tr>

</table>

</td></tr>

</table>

Christine_Moldo
Level 1

Re: Table won't right-align in Outlook

I have also experienced issues with my email template in Microsoft Outlook 2003 and 2007. It even displays as rendering correctly in litmus and emailon acid; however, as soon as I do a test send to my outlook 2007 instance, it still does not display correctly. Has anyone found the beat working conditional statement and css for this?

Robb_Barrett
Marketo Employee

Re: Table won't right-align in Outlook

Have you tried text-align: right instead of just align?

Robb Barrett
Robb_Barrett
Marketo Employee

Re: Table won't right-align in Outlook