Guys, please I need help on how to set a background image from my own image directory using CSS. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Guys, please I need help on how to set a background image from my own image directory using CSS.

background-image

8th Nov 2017, 2:50 PM
Godwin Aidoo
Godwin Aidoo - avatar
2 Answers
8th Nov 2017, 2:57 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 2
If you want to insert an image that is in your local storage you have to write the exact file path of that specific image. Such as... <img src="file:///sdcard/Download/image.jpg"> and unless everyone has the same file, linking using file:/// means only you will see them. otherwise you may use image hosting sites, just post an image to https://postimages.org or https://imgbb.com and get an unique link for your image. then copy and paste the image URL.
10th Nov 2017, 2:34 PM
Nurul Khaliana
Nurul Khaliana - avatar