Change SVG Background Color in CSS

How to Change SVG Color with CSS Properties

Hidden content goes hereTo change svg color background, i tried some available methods, but none worked except this code, you have to just insert the code in the CSS. Works great in wordpress (Additional CSS). It’s useful if your website has an SVG header icon. This is the code

//your svg id
svg#svg_id{

  filter: invert(23%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(168%) contrast(119%);
}

 

Post navigation

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.