maxtana
maxtana
KPCKevin Powell - Community
Created by maxtana on 5/6/2024 in #front-end
Trying to style SVG Sprite with CSS
I've created a sprite file with a logo in it that has 2 groups. I want to be able to style each group independently with CSS. (I've set it up this way so I can style the logo on the fly: solid, 2-color, etc). I have an ID on the SVG groups, and when I reference ONLY the ID in my CSS I'm able to change the color. As soon as I add additional selectors (eg: ".logo #group-name") it breaks and reverst to the default color. What am I doing wrong?
11 replies