P
P
Platon Goldenberg2021-06-07 21:08:03
css
Platon Goldenberg, 2021-06-07 21:08:03

How to write styles for SVG in an unchanged HTML structure if the icon is replaced by an img tag?

I pull out the svg styles specified for the icon in its settings and add them to the HTML over the link to this icon. Can't recolor icon, add hover effect:

https://jsfiddle.net/smartestpro/be10ynvf/33

HTML can only be changed via JS, in my case.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Varlam, 2021-06-08
Erofeich @warsand


Here you can prescribe styles, and everything that is inside svg ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question