Socket
Socket
Sign inDemoInstall

mjml-column

Package Overview
Dependencies
88
Maintainers
6
Versions
128
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mjml-column

mjml-column


Version published
Weekly downloads
466K
decreased by-16.48%
Maintainers
6
Install size
13.5 MB
Created
Weekly downloads
 

Readme

Source

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.

The sum of columns in a section cannot be greater than the width of the parent `mj-section` (or 100%).

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>

try it live

Columns are meant to be used as a container for your content. They must not be used as offset. Any mj-element included in a column will have a width equivalent to 100% of this column's width. Columns cannot be nested into columns, and sections cannot be nested into columns as well.
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/bottom (note: middle works only when adjacent mj-column is also set to middle)top
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

FAQs

Last updated on 05 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc