How to override HTML element inline styles with external CSS

1 Answer

0 votes
.setcolor {
    color: green !important; 
}
<div class="setcolor" style="color:yellow;">
   <h1>text text text</h1>
</div>

 



answered May 22, 2021 by avibootz

Related questions

1 answer 187 views
1 answer 233 views
1 answer 200 views
1 answer 240 views
1 answer 217 views
...