HELP Local Image Background | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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?

2nd Aug 2018, 4:02 AM
Noah Garza
Noah Garza - avatar
3 Answers
+ 4
You cannot use c: windows path on web code. It cannot recognises it.
2nd Aug 2018, 6:14 AM
Calviղ
Calviղ - avatar
+ 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 ☺️☺️.
2nd Aug 2018, 6:21 AM
Meet Mehta
Meet Mehta - avatar
0
Thanks, would you mind showing me an example of using the extension? Would it be ../OS-Street.jpg?
3rd Aug 2018, 9:10 PM
Noah Garza
Noah Garza - avatar