Forums

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
    Posts
  • #293500
    k.bruestle
    Participant

    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.

    #293564
    uxfed
    Participant

    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.