Socket
Socket
Sign inDemoInstall

mjml-image

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-image

mjml-image


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

Readme

Source

mj-image

Displays a responsive image in your email. It is similar to the HTML <img /> tag. Note that if no width is provided, the image will use the parent column width.

<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-image width="300px" src="https://www.online-image-editor.com//styles/2014/images/example_image.png" />
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

try it live

attributeunitdescriptiondefault value
alignpositionimage alignmentcenter
altstringimage description''
borderstringcss border definitionnone
border-topstringcss border definitionnone
border-bottomstringcss border definitionnone
border-leftstringcss border definitionnone
border-rightstringcss border definitionnone
border-radiuspxborder radiusn/a
container-background-colorcolorinner element background colorn/a
css-classstringclass name, added to the root HTML element createdn/a
fluid-on-mobilestringif "true", will be full width on mobile even if width is setn/a
heightpximage heightauto
hrefurllink to redirect to on clickn/a
namestringspecify the link name attributen/a
paddingpxsupports up to 4 parameters10px 25px
padding-bottompxbottom offsetn/a
padding-leftpxleft offsetn/a
padding-rightpxright offsetn/a
padding-toppxtop offsetn/a
relstringspecify the rel attributen/a
sizesmedia query & widthset width based on queryn/a
srcurlimage sourcen/a
srcseturl & widthenables to set a different image source based on the viewportn/a
targetstringlink target on click_blank
titlestringtooltip & accessibilityn/a
usemapstringreference to image map, be careful, it isn't supported everywheren/a
widthpximage widthparent width

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