Closed existe-deja closed 3 years ago
You can use svg-sprites for backgrounds no problem. Just grab the correct outputted path for the generated SVG-sprite file.
background-image: url(directory/path-to-svg-sprite.svg#arrow-right);
how you made it work?
i did the same rule background-image: url('~static/images/icons/sprite.svg#i-user');
but it not working
You can use svg-sprites for backgrounds no problem. Just grab the correct outputted path for the generated SVG-sprite file.
background-image: url(directory/path-to-svg-sprite.svg#arrow-right);
I think It will be in your assets more than in your static folder
Hi,
I'm wondering if it's possible, and how if yes, to use an icon incide my css. For exemple: I have some radio button with an icon and I was wondering if I could use the generated sprite also.
Thanks!