I have the following styles:
#right_content {
padding: 30px 40px !important;
}
I store this inside a file register.css
, which is bound to my register.ts
.
The problem is that <div id="right_content">
is located in a parent module, which means I can't directly modify its CSS properties from within register.ts
.
<div id="right_content">
<router-outlet></router-outlet>
</div>
My register.html
and register.css
goes into the router outlet. I want to style the #right_content
from register.css
.
Is there any way I can turn off view encapsulation (or whatever the adding of the _ngcontent-mxo-3
attributes is called), just for the above styles?
#right_content
is located in a parent component, so I can't change the styles from the CSS in the child component right now, simply because it adds an attribute to my CSS. – Lucas<head>
imperatively. – Günter Zöchbauer