Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mjml-head-style

Package Overview
Dependencies
Maintainers
4
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mjml-head-style - npm Package Compare versions

Comparing version 3.3.0 to 3.3.5

2

package.json
{
"name": "mjml-head-style",
"description": "mjml-head-style",
"version": "3.3.0",
"version": "3.3.5",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "repository": {

## mjml-style
This tag allows you to set CSS styles that will be applied to the <b>HTML</b> 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.
```xml
<mjml>
<mj-head>
<mj-style>
@media all and (max-width: 480px) {
div[style*="color:#F45e46;"] {
text-align: center !important
```xml
<mjml>
<mj-head>
<mj-style>
@media all and (max-width: 480px) {
div[style*="color:#F45e46;"] {
text-align: center !important
}
}
}
</mj-style>
<mj-style inline="inline">
.link-nostyle {
color: inherit;
text-decoration: none
}
</mj-style>
</mj-head>
<mj-body>
<mj-container>
<mj-section >
<mj-column>
</mj-style>
<mj-style inline="inline">
.link-nostyle {
color: inherit;
text-decoration: none
}
</mj-style>
</mj-head>
<mj-body>
<mj-container>
<mj-section >
<mj-column>
<mj-image width="100" src="/assets/img/logo-small.png"></mj-image>
<mj-image width="100" src="/assets/img/logo-small.png"></mj-image>
<mj-divider border-color="#F45E43"></mj-divider>
<mj-divider border-color="#F45E43"></mj-divider>
<mj-text font-size="20px" color="#F45e46" font-family="helvetica">
Hello <a href="https://mjml.io" class="link-nostyle">World</a>
</mj-text>
<mj-text font-size="20px" color="#F45e46" font-family="helvetica">
Hello <a href="https://mjml.io" class="link-nostyle">World</a>
</mj-text>
</mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
```
</mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
```
<p align="center">
<a href="https://mjml.io/try-it-live/components/head-style">
<img width="100px" src="http://imgh.us/TRYITLIVE.svg" alt="sexy" />
</a>
</p>
<p align="center">
<a href="https://mjml.io/try-it-live/components/head-style">
<img width="100px" src="http://imgh.us/TRYITLIVE.svg" alt="sexy" />
</a>
</p>
attribute | unit | description | default value
---------------------|---------------|-------------------------------------|---------------
inline | string | set to "inline" to inline styles | n/a
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc