How do I override a child css-property.
Example, the text should be black:
<div style="color: Black;">
<div style="color: Red;">Red text that should be black.</div>
</div>
Since I got some answers that suggest that I should not use inline styles, I should tell you that this is not an option, at least not for the inner div.
don’t use inline styles. control them from your CSS in the tags or CSS file. Then you can use inheritance, specificty and !important to override. You can’t do it with inline styles as you have it in your code.