4.0.0-alpha.3.13 • Published 7 years ago

dhc-mjml-table v4.0.0-alpha.3.13

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

mjml-table

This tag allows you to display table and filled it with data. It only accepts plain HTML.

<mjml>
  <mj-body>
    <mj-container>
      <mj-section>
        <mj-column>
          <mj-table>
            <tr style="border-bottom:1px solid #ecedee;text-align:left;padding:15px 0;">
              <th style="padding: 0 15px 0 0;">Year</th>
              <th style="padding: 0 15px;">Language</th>
              <th style="padding: 0 0 0 15px;">Inspired from</th>
            </tr>
            <tr>
              <td style="padding: 0 15px 0 0;">1995</td>
              <td style="padding: 0 15px;">PHP</td>
              <td style="padding: 0 0 0 15px;">C, Shell Unix</td>
            </tr>
            <tr>
              <td style="padding: 0 15px 0 0;">1995</td>
              <td style="padding: 0 15px;">JavaScript</td>
              <td style="padding: 0 0 0 15px;">Scheme, Self</td>
            </tr>
          </mj-table>
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>
attributeunitdescriptiondefault value
colorcolortext header & footer color#000
cellpaddingpixelsspace between cellsn/a
cellspacingpixelsspace between cell and bordern/a
font-familystringfont nameUbuntu, Helvetica, Arial, sans-serif
font-sizepx/emfont size13px
line-heightpercent/pxspace between lines22px
container-background-colorcolorinner element background colorn/a
paddingpxsupports up to 4 parameters10px 25px
padding-toppxtop offsetn/a
padding-bottompxbottom offsetn/a
padding-leftpxleft offsetn/a
padding-rightpxright offsetn/a
widthpercent/pxtable width100%
table-layoutauto/fixed/initial/inheritsets the table layout.auto