Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mjml-column

Package Overview
Dependencies
Maintainers
6
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-column

mjml-column

  • 4.10.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
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/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

FAQs

Package last updated on 21 Jul 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc