0
Pls how can i Set The background-image property using css in my phone
8 Respostas
+ 8
Oriakhi Godwin make sure you use correct URL
use this same process as in code for correct URL
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
+ 7
Background-img:url(" img url");
+ 5
Ans:
body{
background-image:url("img url") ;
}
+ 2
Even if you are using a phone you can add any html property you want and that's what I do.
Look while adding an image you have two option
1. You can add an image directly from your internal storage but the image would be visible to you only and other would not be able to see it .
2. By hosting your image on a cloud platform like dropbox. And that's the best way because it would be visible to other too. You just have to upload your image to dropbox copy down the URL and paste it down inside the image tag but with one change replace the 'www' inside the url with 'dl' . You wouldnot believe but this thing really works.
background-image:url(" dl.your uploaded image link");
+ 1
Here's your definition -
The background-image property sets one or more background images for an element.
By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally.
Tip: The background of an element is the total size of the element, including padding and border (but not the margin).
Example -
body {
background-image: url("img_tree.gif"), url("paper.gif");
background-color: #cccccc;
}.
Hope you understand
Rock the code🤟🤟
0
But when I inserted the url it is still showing the blank page... Is it because I am using phone
0
Help me adjust background image size
Plz teach me
- 1
But when I inserted my image url it is still showing the blank page 8s it because I am using phone