SVG widgets usage

Hey,
I was looking to the SVG Widgets, usually when I embedded SVG in other widgets I used

background: no-repeat center/100% url(/vectoriel/spat.svg);background-size: contain;

But in the SVG widget I saw that there a "SVG" elements with " Svg xml definition (will be wrapped in a < svg /> element)"
But I don't understand it
Should I use it to set my widget url or. ?

best
+=
Z

Svg is a markup for creating images with xml : SVG Tutorial
Try copying the content of the svg element in the example in the svg property.

1 Like

Ok !
didn't know that XML could do that but make sens

and could it be possible to use the same method to get SVG in background of other widget ?
I tried in the html options but didn't managed to make it appears.
So no need of external files !

You can put an svg widget behind another widget. Using external files for static assets is better in my opinion though.

1 Like

as it's a patch I'm sharing with other user I'll try this way !
thx