Socket
Book a DemoInstallSign in
Socket

@ecomailcz/mjml-image

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecomailcz/mjml-image

@ecomailcz/mjml-image

latest
Source
npmnpm
Version
4.4.0-ecm-28
Version published
Maintainers
2
Created
Source

mjml-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="http://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 descriptionn/a
borderstringcss 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
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
srcurlimage sourcen/a
srcseturl & widthenables to set a different image source based on the viewportn/a
targetstringlink target on click_blank
titlestringtooltip & accessibilityn/a
widthpximage width100%

FAQs

Package last updated on 27 May 2025

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