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 424 views
1 answer 412 views
1 answer 369 views
1 answer 416 views
1 answer 427 views
...