Answers for "how to override an svg color in css"

CSS
0

change svg color on hover, css

<style>
.x-svg:hover g, .x-svg:hover path{
          fill: red;
      }
</style>
Posted by: Guest on October-20-2021
-1

css change svg color

in the HTML:
<img src="dotted-arrow.svg" class="filter-green"/>

then change the color in the css file:
.filter-green{
        filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
    }
Posted by: Guest on October-22-2021

Browse Popular Code Answers by Language