CSS Background Image SVG

Is there a way to reference an SVG image as a background image in CSS from within the builder files?

EX. If I created a div and added SVG as a background image. Can I pull SVG as a file from within the builder “files” (image/name.svg)?

Yes, you can, if I understood a question well. Have you tried to do that yet, or you are just asking before trying? :slight_smile:

1 Like

I tried, but maybe I was doing it wrong. I was trying to add SVG code to a “file”. It added as .JS file. Trying to change type, but there were no asset type that I felt worked.

Also, how do I make sure to link it properly?

1 Like

That was super helpful. Thank you.

1 Like