Skip to content

Remove .ExternalClass rules in reset styles #1614

@hteumeuleu

Description

@hteumeuleu

In the HTML code generated by MJML, the first <style> tag contains the following rules :

.ExternalClass {
   width: 100%;
}

.ExternalClass * {
    line-height: 100%;
}

This was useful for Outlook.com up to circa 2016. The new versions of Outlook.com since 2016 no longer use the .ExternalClass prefix.

These styles should be safely removed from the generated HTML.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions