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

Home Forums CSS SVG setting Color with CSS

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #293500

    I am trying to set the color of an SVG via CSS but it doesn’t seem to work. I would really apreciate it if someone could help me.

    Codepen example.


    When determining your selectors, I’d suggest checking the actual DOM that gets generated. The selector you’ve written of .testgreen ~radialGradient doesn’t match anything on the page. Try changing the selector to .testgreen radialGradient, and add the class “testgreen” to your first SVG.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.