3 ms·
Can I somehow put the css classes inside the svg to have it self contained without resorting to inline styles?
by lxe 3y ago
Can I somehow put the css classes inside the svg to have it self contained without resorting to inline styles?
- solardev 3y agoYeah, just add the style tag in there like you would with HTML: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/style https://developer.mozilla.org/en-US/docs/Web/SVG/Element/sty... And SVG elements can have classes: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/class https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/c...