Answer the question
In order to leave comments, you need to log in
Is it possible to improve my way of working with SVG icons?
This is primarily about icons that should respond to events like a mouse click. Now they are all connected as a background image:
background: center no-repeat url(../assets/svg/cross/cross-base.svg);
assets/svg/cross/
cross-base.svg
cross-hover.svg
cross-active.svg
cross-disabled.svg
Answer the question
In order to leave comments, you need to log in
What options do I know:
1. Use sprites
2. Insert an inline icon and work with its curves, shapes using CSS (as well as with any other entities)
3. Using php, render everything as inline.
4. Do step 3 with js. <img src="image.svg">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question