Mjml: Button padding missing in Outlook

Created on 14 Jul 2016  路  6Comments  路  Source: mjmlio/mjml

In version 2.3.0, it looks like padding isn't being added to <mj-button>.

On Gmail / Inbox, it renders fine:
image

On Outlook, it used to render fine but now renders like this:
image

Outlook issue

Most helpful comment

The padding is being applied to the anchor tag and not the parent td holding it, I swapped them and the button retains the padding on all clients (litmus).

PR #331 has a fix for this, thanks 馃樃

All 6 comments

It looks ok in 2016 but all other outlooks are broken, I will take a look.
Here is MJML to reliably reproduce this bug.

<mjml>
  <mj-body>
    <mj-container>
      <mj-section>
        <mj-column>

          <mj-button background-color="#F63A4D" inner-padding="50px" href="#">
            Promotion
          </mj-button>
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>

The padding is being applied to the anchor tag and not the parent td holding it, I swapped them and the button retains the padding on all clients (litmus).

PR #331 has a fix for this, thanks 馃樃

Hi, thanks for the fix @g0ddish
@iRyusa any ETA for a 2.3.1 mentioned in #331 ?

It should be around next week~

ok thanks!

2.3.1 has been released for a while now, but try it live on mjml.io is not up to date.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theVannu picture theVannu  路  3Comments

karanmartian picture karanmartian  路  3Comments

csmcanarney picture csmcanarney  路  3Comments

plaisted picture plaisted  路  4Comments

iwanaga-sakura picture iwanaga-sakura  路  4Comments