CSS: background-image url- what folder do I use?

Silly question: I uploaded a photo to assets. I want to use it as a background. How do I reference this in CSS? I tried the following:

.body{ background-image: url(“photo.jpg”);}
.body{ background-image: url(“theme/photo.jpg”);}
.body{ background-image: url(“static/photo.jpg”);}

For reference, linking to a photo online somewhere DOES work:
.body{ background-image: url(“http:www/website.com/photo.jpg”);} /* DOES WORK*/

I’ve not tested this…

but most of the asset stuff (css/html/js) is in :

_/theme/

Could try that as a path, eg :

.body{ background-image: url(“_/theme/photo.jpg”);}

edit - actually - how did you upload it?

2 Likes

That did it! Thanks for the quick reply.

1 Like