Answer the question
In order to leave comments, you need to log in
How to correctly change the color of svg-scales through css?
How many times it didn't work out already... I'm stupid somewhere, gentlemen.
There is a page. Svg is inserted through <img src="foo.svg">
so as not to duplicate the code. The default color is set in the code of the svg itself via fill=""
. Question: Can I change it with CSS? Now I want to change the color of svg by hover, for example.
If suddenly it’s impossible to do this in this way, then I will be grateful for any options other than "insert the same svg into HTML 18 times" :)
Answer the question
In order to leave comments, you need to log in
Посмотрите урок > тут явно задано через CSS замена классом данных из CDATA:
https://bundlespace.com/intro/lessons/lesson-desig...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question