This is quite embarrasing. I am learning new things but I am surprised I can't figure this out on my own.
On my desktop, I have a folder called Test and in that I have index.html
and a folder called CSS, which contains index.css
and another folder called images with an image called logo.png
.
In my index.css
file, I have the following line:
background: url("images/logo.png") no-repeat;
Using the above line I can't display the image locally. I tried using /images
and test/images
but it doesn't work. How can I display this if I am viewing it locally?