Kevin Powell - CommunityKP-C
Kevin Powell - Communityβ€’2y agoβ€’
10 replies
maxtana

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?
Was this page helpful?