How can i apply a “background-image” to my css style from my pc storage. I tried url(“”) but it doesn’t work. I googled it and found out i needed to use an http server but i really don’t get it. Can someone pls explain in details.
i am not hosting it. at least not yet. i am just trying to practice html and css by building myself a port folio. i am using vs code and a live preview server extension to preview my work on a browser.
I don’ think the StackOverflow link said something about “add my local storage to the html”? The url() for the background-image should be the relative path from your CSS file to the image you want to use.
Do you know what a relative path is? What I’m trying to say won’t make much sense if you don’t know the difference between an relative and absolute path.