4.9.3 • Published 3 years ago

mjml-text-node6 v4.9.3

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

mj-text

This tag allows you to display text in your email.

<mjml>
 <mj-body>
   <mj-section>
     <mj-column>
       <mj-text>
         <h1>
           Hey Title!
         </h1>
       </mj-text>
     </mj-column>
   </mj-section>
 </mj-body>
</mjml>
attributeunitdescriptiondefault value
colorcolortext color#000000
font-familystringfontUbuntu, Helvetica, Arial, sans-serif
font-sizepxtext size13px
font-stylestringnormal/italic/obliquen/a
font-weightnumbertext thicknessn/a
line-heightpxspace between the lines1
letter-spacingpx,emletter spacingnone
heightpxThe height of the elementn/a
text-decorationstringunderline/overline/line-through/nonen/a
text-transformstringuppercase/lowercase/capitalizen/a
alignstringleft/right/center/justifyleft
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
css-classstringclass name, added to the root HTML element createdn/a