4.6.7 • Published 4 years ago

browser-mjml-image v4.6.7

Weekly downloads
63
License
MIT
Repository
github
Last release
4 years ago

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>
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
usemapstringreference to image map, be careful, it isn't supported everywheren/a
widthpximage width100%
4.6.7

4 years ago

4.6.6

4 years ago

4.6.3

4 years ago

4.2.8

5 years ago

4.2.7

5 years ago

4.2.6

5 years ago

4.2.5

5 years ago

4.2.4

5 years ago

4.2.3

5 years ago

4.2.2

5 years ago

4.2.1

5 years ago