mjml center image on mobile code example
Example: mjml center image on mobile
MJML - Center image on mobile with media query.
1. Add class to <mj-image>:
<mj-image css-class="center-on-mobile">
2. Add Media query:
@media only screen and (max-width: 450px) {
.center-on-mobile > table {
margin: 0 auto !important;
}
}