R
R
rusglov2018-03-06 19:44:49
css
rusglov, 2018-03-06 19:44:49

How to connect svg images through background?

Is it possible to somehow connect an svg image via background-image with a link to the desired symbol id from the svg file.
In plain language, you need something like this: background-image: url('data:image/svg+xml;utf8, ../img/svg/sprite.svg#my-icon');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moskus, 2018-03-06
@rusglov

https://css-tricks.com/svg-fragment-identifiers-work/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question