Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Targeting SVG icons with CSS not working in Webkit Reply To: Targeting SVG icons with CSS not working in Webkit

#183434
burr
Participant

You can if that path has an ID or Class.

Problem is that if you specify more than that individual selector in the CSS it won’t work.

E.g (Paulie pen)

.arrow {
    fill: aqua;
}

Will work but

.someParent .arrow {
    fill: aqua;
}

Won’t.

I suppose that sort of defeats that purpose of using a sprite if you can’t style each one individually.