npm.io
5.4.0 • Published 1 month ago

mjml-spacer

Licence
MIT
Version
5.4.0
Deps
3
Size
5 kB
Vulns
0
Weekly
0
Stars
18.2K

mj-spacer

Displays a blank space, that can be used to separate content.

<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-text>A first line of text</mj-text>
        <mj-spacer height="50px" />
        <mj-text>A second line of text</mj-text>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

Attributes

attribute accepts description default value
container-background-color CSS color formats inner element background color
css-class string class name, added to the root HTML element created
height px % spacer height 0px
padding px % spacer padding, supports up to 4 parameters
padding-bottom px % bottom padding
padding-left px % left padding
padding-right px % right padding
padding-top px % top padding

Try it live