E
E
Egor Zhivagin2017-01-24 17:50:14
css
Egor Zhivagin, 2017-01-24 17:50:14

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

2 answer(s)
A
Alexander Belov, 2017-01-24
@Krasnodar_etc

https://css-tricks.com/almanac/properties/f/fill/

Егор Поляков, 2019-08-12
@inmotusdesign

Посмотрите урок > тут явно задано через CSS замена классом данных из CDATA:
https://bundlespace.com/intro/lessons/lesson-desig...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question