Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mjml-table

Package Overview
Dependencies
Maintainers
6
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-table

mjml-atable

  • 4.15.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

mj-table

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

<mjml>
  <mj-body>
    <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-body>
</mjml>

try it live

`mj-table` is an "ending tag", which means it can contain HTML code which will be left as it is, so it can contain HTML tags with attributes, but it cannot contain other MJML components. In `mj-table` specifically, you can put anything you would put in a `<table>` element. More information about ending tags in this section.
attributeunitdescriptiondefault value
alignleft/right/centerself horizontal alignmentleft
borderbordertable external bordernone
cellpaddingpixelsspace between cellsn/a
cellspacingpixelsspace between cell and bordern/a
colorcolortext header & footer color#000000
container-background-colorcolorinner element background colorn/a
css-classstringclass name, added to the root HTML element createdn/a
font-familystringfont nameUbuntu, Helvetica, Arial, sans-serif
font-sizepxfont size13px
line-heightpercent/pxspace between lines22px
paddingpercent/pxsupports up to 4 parameters10px 25px
padding-bottompercent/pxbottom offsetn/a
padding-leftpercent/pxleft offsetn/a
padding-rightpercent/pxright offsetn/a
padding-toppercent/pxtop offsetn/a
rolenone/presentationspecify the role attributen/a
table-layoutauto/fixed/initial/inheritsets the table layout.auto
widthpercent/pxtable width100%

FAQs

Package last updated on 05 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc