+ 3
How to use background-image:url() in css?
Here when I give url inside() the background won't appear ?help me with example.
10 Antworten
+ 12
shubham kumar use "dl" instead of "www" in your image link
Look at this
https://code.sololearn.com/Won4V2zUnfzA/?ref=app
+ 10
For example:
body {
Background-image: url('address_of_the_image.png');
width: 100vw;
}
+ 6
It's easy for example---> body {
background-image('url');
}
+ 3
Set a background-image for the <body> element:
body {
background-image: url("paper.gif");
background-color: #cccccc;
}
Or-
Set two background images for the <body> element:
body {
background-image: url("img_tree.gif"), url("paper.gif");
background-color: #cccccc;
}
Hope it works!!!!
Have a nice day!!!!😊
+ 3
Still don't work.
https://code.sololearn.com/W2v3RYozItM8/?ref=app
+ 3
Many many thanks to you Simba for help.
+ 2
Use
background-image:theurl;
shubham kumar
+ 1
Not working in my case.
https://code.sololearn.com/W2v3RYozItM8/?ref=app
+ 1
Simba ,when I tried it donot work.
+ 1
There is problem with cloudstorage or there is some other problem but I don't know where.