I have an HTML file with a subdirectory called img
with an image called debut_dark.png
. In my CSS file, I have:
body {
backgro
Basically the problem is with file path.
The forward slash in the beginning of the url makes it look for the file at the root. Removing that, it will be a path relative to this css file - like this:
background-image: url(img/debut_dark.png);
If you are using Atom, copying the project path of image sometimes includes forward slash in the copied path so be careful.