Background-image not working?

Hi everyone, I cannot get the

to display the background image…

I checked for typos, checked the URL, removed all the rest of the code, set height to 100% but nothing helps. Do you have any ideas?


Partial URLs are interpreted relative to the source of the style sheet, not relative to the document

Thank you! Fixed! It works

Okay cool. From what i understand the reason it didn’t work was because the div you were trying to set it to was empty. You had to add some content to it OR if you wanted it to stay empty you had to add height and width values for it.

It did not work because images were not in the css/ folder

Pretty sure it kept not working after you moved the image until you added some content to your div :stuck_out_tongue: Glad you sorted it out, удачи :wink:

1 Like

So i have to move all the image and HTML to ONE Folder? i do that and doesn’t work. And a copy and paste the path that Visual Studio Code give me when i open the image in the editor.