+ 3
Please how do I do a background image in html/css?
background image
8 Answers
+ 2
Unfortunately, you would have to find the URL to your image for it to work. However, if you really want to use your image, then you can upload it to places like Dropbox and save the url from there as a way of using it on your website -
https://www.sololearn.com/discuss/1054246/?ref=app
+ 3
In CSS, you can add the background-image to the body followed by the URL of the image to set it as the background. If you don't want the image to repeat itself, you can add the background-repeat property to the body and set it to none, and have background-size set of cover.
body{
background-image: url("example.com/jpg");
background-repeat: none;
background-size: cover;
}
Hope this helped! d:
+ 3
Thanks guys. but must the image be from a url.
what If I want to upload from my gallery?
+ 3
Y.K. thank you
+ 2
in css
body{
background-image:url("yourimage");
}
+ 2
Faisal thank you.
now I get it
+ 2
Your welcome Ukeme Wilson