3.3.6 • Published 6 years ago

mjml-column-c1sar v3.3.6

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 years ago

mjml-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-container>
      <mj-section>
        <mj-column>
          <!-- Your first column -->
        </mj-column>
        <mj-column>
          <!-- Your second column -->
        </mj-column>
      </mj-section>
    </mj-container>
  </mj-body>
</mjml>
attributeunitdescriptiondefault attributes
background-colorstringbackground color for a 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-radiuspxborder radiusn/a
widthpercent/pxcolumn width(100 / number of columns in section)%
vertical-alignstringmiddle/top/bottomtop
css-classstringclass name, added to the root HTML element createdn/a
3.3.6

6 years ago