I am currently taking an HTML class in school and I'm having trouble. I can't get my background-image to work.
I have it as
but it is not working; the photo is inside images which is inside public, which is inside my parent folder.
I've tried it with " instead of ', I've also tried without the quotes.
I don't know what else I can do??
Hi If the public is within
If the public is within the web root , where the html file is then you could use
Otherwise you can use relative paths from the stylesheet.
so if your stylesheet is in /public/styles/ then use