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 !
2 Respostas
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.
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.