Today I am facing a problem of restricting the scope of css. The
<div class="parent">
<div id="childWithNoCss">
<p>No css</p>
</div>
<div id="childWithCss">
<p>Apply css</p>
</div>
</div>
My css is:
div{
color:red}
p{color:blue}
I need to apply the css specific to the id childWithCss. The css is fixed (I cannot change it) just need to limit its scope only to a specific element. I cannot use scope attribute since it is incompatible in some browsers. Is there any other solution?
Regards