Someone can help.
I am updating my knowledge of HTML and CSS (4 years have passed since I worked with these languages), and I had problems with the link to the images in the folder structure that I have. The attached image shows the folder structure that I have for my project.
I want to do this from my index.css file in my CSS folder, using the following line of code to access the image, Logo 1.png, from the My Images folder for use as a background.
body { background-color: #FFFEF0; background-image: url(./Images/Logo 1.png); }
However, this does not seem to work, I do not see the image. I also tried .. / Images / Logo 1.png, but again this also doesn't work. From my index.html, I can get the image to display from the Images folder with. / Images / Logo 1.png (note ../ vs./)
Am I right about this or not? I searched Google several times for a link to relative paths, but there were no great examples.
Can anyone tell me where I am going wrong?
source share