Description Usage Arguments See Also Examples
Display a section with a background image and some content inside (mj_text
,
mj_button
, mj_image
...) wrapped in mj-hero-content component.
1 2 3 |
... |
Unnamed items that comprise this list of MJML tags. |
https://mjml.io/documentation/#mjml-hero
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | mj_ml(
mj_body(
mj_container(
mj_hero(
mode = "fluid-height",
`background-url` = paste0("https://media.vanityfair.com/photos/",
"54cbf3da998d4de83ba3602a/master/",
"w_960,c_limit/image.jpg"),
mj_hero_content(
mj_text("HERO")
),
mj_button("MJML")
)
)
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.