Mjml: If I place mj-image inside mj-table, image is not rendering in html?

Created on 10 Aug 2016  路  5Comments  路  Source: mjmlio/mjml





      <mj-table>
        <tr>
          <td><mj-image align="right" width="100" src="/assets/img/logo-small.png"></mj-image></td>
          <td><mj-image align="right" width="100" src="/assets/img/logo-small.png"></mj-image></td>
        </tr>
      </mj-table>

      <mj-divider border-style="dotted" border-width="2px"  border-color="#F45E43"></mj-divider>

      <mj-text font-size="20px" color="#F45E43" font-family="helvetica">Hello World</mj-text>

    </mj-column>
  </mj-section>
</mj-container>


Most helpful comment

This was not clear, should be in documentation

All 5 comments

Hi @sesn ,

Mj-Image are just allowed inside a column not inside mj-table. Mj-table accepts only htmlelements, so use a regular img tag here

This was not clear, should be in documentation

hey @bassbump, sorry the documentation isn't clear enough. Would it be clearer if it said the following?

This tag allows you to display a table. It only accepts plain HTML.

By the way, feel free to send any suggestion to the documentation by submitting a pull request, the documentation is the README.md of each MJML package (for example with mj-table: https://github.com/mjmlio/mjml/blob/master/packages/mjml-table/README.md)

Yep sounds good, submitted pull sorry for the trouble

No no worries, that's with such feedback that we can improve :).

Thanks a lot for the PR, you rock 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lucasnantonio picture lucasnantonio  路  4Comments

csmcanarney picture csmcanarney  路  3Comments

tobystokes picture tobystokes  路  3Comments

theVannu picture theVannu  路  3Comments

sinsunsan picture sinsunsan  路  4Comments