how to put background image if Im using a mobile | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

how to put background image if Im using a mobile

1st May 2022, 2:35 PM
Adrian Cipriano
Adrian Cipriano - avatar
18 Answers
7th Apr 2023, 10:35 AM
JaScript
JaScript - avatar
+ 3
First host your image on the internet to get its public url. Then copy its url. After that, in the css, write - body { background-image: url('IMAGE URL'); } hope it helps !
1st May 2022, 3:01 PM
Arnav Gumber
Arnav Gumber - avatar
1st May 2022, 3:20 PM
JaScript
JaScript - avatar
+ 2
https://www.dropbox.com/s/kmuawf8uk1of0h1/download%20%281%29.jpeg?dl=0 Heres the link Im trying to create a web site for school project
1st May 2022, 3:17 PM
Adrian Cipriano
Adrian Cipriano - avatar
+ 2
If you are trying to insert image in your code. Then just copy the image's link not the pages and I will recommend you to use imgbb.com instead of Dropbox. You just made your code complicated. https://code.sololearn.com/W47doku60ngY/?ref=app
3rd May 2022, 7:20 AM
Ayush Pandey
Ayush Pandey - avatar
+ 1
I already tried it but I think theres a bug in the app. What you type in css shows in the output Like the actual code shows in the output
1st May 2022, 3:06 PM
Adrian Cipriano
Adrian Cipriano - avatar
1st May 2022, 3:11 PM
Arnav Gumber
Arnav Gumber - avatar
+ 1
On Android: Body tag <body style="/storage/emulated0/your pic foder/your image.png;"> Style tag body{ background-image:url(/storage/emulated/0/your pic folder/image.png; } NOTE:your images are not displaying because of not defining the paths of images like /storage/emulated/0/pictures/king.png Best Way use https://imgbb.com go and upload your images and they will generate the image links for you take the HTML link and paste the code here body{ background-image:url(paste the HTML link here); HOPE NOW IT WORKS PERFECTLY
1st May 2022, 10:23 PM
Razack VON Razack
Razack VON Razack - avatar
+ 1
In CSS: body{ background-image:url("the image link") }
3rd May 2022, 1:44 PM
Didi😘
Didi😘 - avatar
0
'IMAGE URL' is the placeholder, you need to put the actual url there.
1st May 2022, 3:07 PM
Lisa
Lisa - avatar
0
Yeah I put this Body{ background-image:url( ); } I inserted the url there but when I click output it shows what Ive type not the image
1st May 2022, 3:10 PM
Adrian Cipriano
Adrian Cipriano - avatar
0
Which url did you put there? It must link to an image (usually ends with jpg or pages or something) Link your code, of you want us to check on it.
1st May 2022, 3:13 PM
Lisa
Lisa - avatar
0
I also did remove the www and replace it with dl like on the yt video that Ive watched
1st May 2022, 3:18 PM
Adrian Cipriano
Adrian Cipriano - avatar
0
Thank you for the help I tried rewriting what you guys send but it didnt work but when I copy pasted it it worked
1st May 2022, 3:33 PM
Adrian Cipriano
Adrian Cipriano - avatar
0
Adrian Cipriano open that image in different tab then copy the image url
2nd May 2022, 2:31 PM
Somil Khandelwal
0
<style> body{ background-image:url('path.picture type'); } </style>
2nd May 2022, 6:23 PM
Muhammad Abdulmalik
Muhammad Abdulmalik - avatar
0
How to get audio link or url
3rd May 2022, 11:30 AM
ARTICLE 51 GAMING