Re: Marketo rewriting my TD padding into shorthand code

Yonder_Buslon
Level 2

Marketo rewriting my TD padding into shorthand code

Hi Marketo Community,

I've been running into an issue with one of my snippets. I have a TD cell with padding written in longhand as follows:

<td style="padding-top: 0px; padding-right: 32px; padding-bottom: 0px; padding-left: 32px;">

But when I save the snippet, Marketo keeps converting the longhand code into shorthand:

<td style="padding: 0px 32px 0px 32px;">

Is there any way to prevent this? The shorthand version causes issues in certain email platforms, so I want to avoid using it.

Thanks for any help or clarity you can provide.

-yonder

Tags (2)
2 REPLIES 2
Jay_Jiang
Level 10

Re: Marketo rewriting my TD padding into shorthand code

Don't know of any way to stop it, but it looks like rewrite doesn't happen if you don't have all 4 sides in the one style ... e.g. <td style="padding-right:32px;padding-left:32px"></td> won't be rewritten

If you have to specify 4 sides of padding, only workaround is wrap another <table><tr><td> around it e.g.

<table>

<tr>

<td style="padding-top:20px;padding-bottom:20px">

<table>

<tr>

<td style="padding-right:32px;padding-left:32px"></td>

</tr>

</table>

</td>

</tr>

</table>

Yonder_Buslon
Level 2

Re: Marketo rewriting my TD padding into shorthand code

Thanks for the workaround Jay! I got the effect I wanted! Much appreciated!