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 272 views
1 answer 309 views
1 answer 266 views
1 answer 303 views
1 answer 298 views
...