mjml-spacer
v4.18.0
Published
mjml-spacer
Downloads
3,073,987
Keywords
Readme
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 | |
