Live Preview - Assets not being loaded from CSS


#1

I have a basic site with a single .html file plus some image assets, CSS, and Javascript. When I click on the Live Preview File (index.html), everything is previewed fine except my backgrounds, which are retrieved with CSS using:

background: url("/assets/images/bg/my_background.jpg");

Other images that are loaded from index.html are loaded fine, all the rest of the CSS and Javascript is loaded fine also.

Any ideas… ?


#2

I noticed that if I run index.html with Apache2, I can see everything being loaded fine. Is this the way it should be done?


#3

Not sure what it is off the top of my head. Have you tried open the browser console and checking the sources tab to see if that image is being loaded in a different directory for some reason?