Using initial Keyword
Preview
Code
<style>
.parent{
color:#ef4444;
}
.child{
color:initial;
}
</style>
<div class="parent">
<p class="child">This text resets to default color.</p>
</div>
<style>
.parent{
color:#ef4444;
}
.child{
color:initial;
}
</style>
<div class="parent">
<p class="child">This text resets to default color.</p>
</div>