+ 2
When i try to add a background image using CSS. It doesn't show the image
p { background-image: url("image.jpg"); }
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
+ 2
thx for the answer
+ 2
body {
background: url(sweettexture.jpg);
}
+ 2
PanicS thanks