I'm loading emails (via gmail's api) using Angular:
<div class="email-body">
<div compile-html data-html="thread.message.body"></div>
</div>
When I do so, the loaded emails bring with them css styling that affect the css of the whole site.
For example, my css:
.container {
width: 80%;
}
But an email (once loaded) brings the following css:
.container {
width: 20% !important;
}
The css for .container gets overridden by the newly loaded css. Is there a way I could contain the imported css within a div (email-body
)?