#' Style

mj_style(...)

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

Examples

mj_ml( mj_head( mj_style( inline = TRUE, ".color{color:'blue'}" ) ), mj_body( mj_text( `mj-class` = "color", "Blue text" ) ) )
#> <mjml> #> <mj-head> #> <mj-style inline="TRUE">.color{color:'blue'}</mj-style> #> </mj-head> #> <mj-body> #> <mj-text mj-class="color">Blue text</mj-text> #> </mj-body> #> </mjml>