0
HELP Local Image Background
I am having a hard time trying to make a background with pictures on my computer. Please Help. The HTML: <div class="uno"></div> The CSS: .uno { background-image: url("C:\Users\Noah G\Desktop\My Website\OS-Street.jpg"); background-size: 100% 100%; background-repeat: no-repeat; } I think it's just the way I put in the properties of the picture. I just found the properties of the image, then I copied and pasted them into my code, and added the name and .jpg. Is there anything else I should do?
3 Respostas
+ 4
You cannot use c: windows path on web code. It cannot recognises it.
+ 2
Copy and paste that image in your current project folder and than just use name of image and extension in background property.
Hope this helps ☺️☺️.
0
Thanks, would you mind showing me an example of using the extension?
Would it be
../OS-Street.jpg?