mj_style: Style

Description Usage Arguments Details See Also Examples

View source: R/head.R

Description

#' Style

Usage

1

Arguments

...

Unnamed items that comprise this list of MJML tags.

Details

This tag allows you to set CSS styles that will be applied to the HTML in your MJML document as well as the HTML outputted. The CSS styles will be added to the head of the rendered HTML by default, but can also be inlined by using the inline="inline" attribute.

See Also

https://mjml.io/documentation/#mjml-style

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
mj_ml(
 mj_head(
   mj_style(
     inline = TRUE,
     ".color{color:'blue'}"
   )
 ),
 mj_body(
    mj_text(
      `mj-class` = "color",
      "Blue text"
    )
  )
)

JohnCoene/mjml documentation built on March 19, 2018, 5:07 a.m.