how to put background image if Im using a mobile | Sololearn: Learn to code for FREE!

+2

how to put background image if Im using a mobile

5/1/2022 2:35:19 PM

Adrian Cipriano

17 Answers

New Answer

+3

This example will help you: https://code.sololearn.com/WSLZPpBIFgr7/?ref=app

+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

+1

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 !

+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

+1

https://code.sololearn.com/Wn3UWGzIw6zP/?ref=app

+1

It is unclear what exactly you did but it works https://stackoverflow.com/questions/21775833/how-to-apply-css-and-javascript-from-dropbox-folder-for-using-it-in-blogger https://code.sololearn.com/W3Ou9d4Y0P9f/?ref=app

+1

Thank you for the help I tried rewriting what you guys send but it didnt work but when I copy pasted it it worked

+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

+1

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

+1

In CSS: body{ background-image:url("the image link") }

0

'IMAGE URL' is the placeholder, you need to put the actual url there.

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

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.

0

I also did remove the www and replace it with dl like on the yt video that Ive watched

0

Adrian Cipriano open that image in different tab then copy the image url

0

<style> body{ background-image:url('path.picture type'); } </style>

0

How to get audio link or url