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 268 views
1 answer 303 views
1 answer 258 views
1 answer 299 views
1 answer 290 views
...