+ 2

When i try to add a background image using CSS. It doesn't show the image

p { background-image: url("image.jpg"); }

27th Feb 2022, 7:44 PM
Airhead
Airhead - avatar
4 Antworten
+ 2
It dont add image because local path dont work in sololearn, or if you try on pc you dont have image with name "image.jpg" in same folder as your html file. You can use images from internet (try using free images sites), or if you have your own image, you can upload it to site like google drive or dropbox and paste a link to your claud image. This is only way to use image on sololearn, wia link. https://code.sololearn.com/Wu2jn98dxaw5/?ref=app
27th Feb 2022, 7:58 PM
PanicS
PanicS - avatar
+ 2
thx for the answer
27th Feb 2022, 8:08 PM
Airhead
Airhead - avatar
+ 2
body { background: url(sweettexture.jpg); }
28th Feb 2022, 10:28 PM
Vaibhav
Vaibhav - avatar
+ 2
PanicS thanks
6th Mar 2022, 11:32 AM
T.Coded
T.Coded - avatar