4.9.3 • Published 3 years ago

mjml-column-node6 v4.9.3

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

mj-column

Columns enable you to horizontally organize the content within your sections. They must be located under mj-section tags in order to be considered by the engine. To be responsive, columns are expressed in terms of percentage.

Every single column has to contain something because they are responsive containers, and will be vertically stacked on a mobile view. Any standard component, or component that you have defined and registered, can be placed within a column – except mj-column or mj-section elements.

<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <!-- Your first column -->
      </mj-column>
      <mj-column>
        <!-- Your second column -->
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>
attributeunitdescriptiondefault attributes
background-colorcolorbackground color for a columnn/a
inner-background-colorcolorrequires: a padding, inner background color for columnn/a
borderstringcss border formatnone
border-bottomstringcss border formatn/a
border-leftstringcss border formatn/a
border-rightstringcss border formatn/a
border-topstringcss border formatn/a
border-radiuspercent/pxborder radiusn/a
inner-borderstringcss border formatn/a
inner-border-bottomstringcss border format ; requires a paddingn/a
inner-border-leftstringcss border format ; requires a paddingn/a
inner-border-rightstringcss border format ; requires a paddingn/a
inner-border-topstringcss border format ; requires a paddingn/a
inner-border-radiuspercent/pxborder radius ; requires a paddingn/a
widthpercent/pxcolumn width(100 / number of non-raw elements in section)%
vertical-alignstringmiddle/top/bottomtop
paddingpxsupports up to 4 parametersn/a
padding-toppxsection top offsetn/a
padding-bottompxsection bottom offsetn/a
padding-leftpxsection left offsetn/a
padding-rightpxsection right offsetn/a
css-classstringclass name, added to the root HTML element createdn/a