+ 3

How to use background-image:url() in css?

Here when I give url inside() the background won't appear ?help me with example.

12th Jul 2020, 11:07 AM
shubham kumar
shubham kumar - avatar
10 Respostas
+ 12
shubham kumar use "dl" instead of "www" in your image link Look at this https://code.sololearn.com/Won4V2zUnfzA/?ref=app
12th Jul 2020, 11:47 AM
Simba
Simba - avatar
+ 10
For example: body { Background-image: url('address_of_the_image.png'); width: 100vw; }
14th Jul 2020, 1:31 AM
Lazizbek
Lazizbek - avatar
+ 6
It's easy for example---> body { background-image('url'); }
12th Jul 2020, 2:16 PM
🗿Akaki Burjanadze🗿
🗿Akaki Burjanadze🗿 - avatar
+ 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!!!!😊
12th Jul 2020, 11:27 AM
Aveer Dhare
Aveer Dhare - avatar
12th Jul 2020, 11:42 AM
shubham kumar
shubham kumar - avatar
+ 3
Many many thanks to you Simba for help.
12th Jul 2020, 11:50 AM
shubham kumar
shubham kumar - avatar
+ 2
Use background-image:theurl; shubham kumar
13th Jul 2020, 2:34 AM
Marvellous Osewe Christopher
Marvellous Osewe Christopher - avatar
12th Jul 2020, 11:31 AM
shubham kumar
shubham kumar - avatar
+ 1
Simba ,when I tried it donot work.
12th Jul 2020, 11:32 AM
shubham kumar
shubham kumar - avatar
+ 1
There is problem with cloudstorage or there is some other problem but I don't know where.
12th Jul 2020, 11:44 AM
shubham kumar
shubham kumar - avatar