I have following css
.red {
    color: red !important;
}
.yellow {
    color: yellow;
 }
In html
<div class="red">
    red
    <span class="yellow">override this</span>
</div>
How do I override child color from parent? I can't use inherit. I have a condition that red is shown otherwise yellow. Please help me.
 
     
     
    