0

What is the path to take the image directly from your computer ?

(Lesson Background-image Properties(css) hi ! When you want to take the image from your computer , what is the path ? instead of .... body { background-image: url("http://www.sololearn.com/uploads/css_logo.png"); It will be ... I can't put an image directly from my computer . I have to dowload the image in a website , then copy the image adress . thanks for your help !

10th May 2018, 6:41 PM
S. Kaouche
S. Kaouche - avatar
2 Antworten
0
Because the code you write in the playground is saved in Sololearn's server it can not open a file from you device. Unless your device is online.
10th May 2018, 7:34 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
HAPPYTOHELP is right file:// is used to access files on the device running the code. Some browsers however do have security features that limit what you can do with it for obvious reasons. You can embed the image in css or html using base64 data url.
11th May 2018, 4:58 AM
Nommer101
Nommer101 - avatar