What is the correct syntax when setting the background-image in CSS? In visual studio, there seems to be no problem in the background since it appears. But in the browser li
If you're testing on a local machine without using a web server (i.e. if the URL of your page in FF starts with "file://", that url wont work. You'll want to specify a relative path to the image because otherwise it'll be looking for that image at the root of your hard drive.
So if your files are like this:
/some/path/html/index.html
/some/path/html/images/bgimage.jpg
Your code will look like:
background-image: url('images/bgimage.jpg');