I am in the process of changing the color of an SVG using CSS. The code I attempted below only alters the background color, but I also need to change the text color.
This is my original SVG.
https://i.sstatic.net/7lNE0.png
The desired output should look like this:
https://i.sstatic.net/CbIXa.png
However, I'm currently getting this output:
https://i.sstatic.net/LoskS.png
Is there a way to achieve this with CSS?
.mylogo2 {
fill: yellow;
color: red
}
<div class="mylogo2">
<svg xmlns="http://www.w3.org/2000/svg" width="187.684" height="58.885" viewBox="0 0 187.684 58.885">
<g id="Sample_Logo" data-name="Sample Logo" transform="translate(-475 -511)">
... SVG PATH Data ...
</g>
</svg>
</div>