0

Can anyone tell me Why background img is not working in my html?

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

7th Jul 2021, 7:30 AM
Anand Raj
Anand Raj - avatar
7 Réponses
+ 4
the url provided redirect to the google detail image page, not to the image itself ^^ you should use the real image url, and probably at least use background-size property: body { background-image:url('https://media.newyorker.com/photos/5e2b598351d1330009001749/1:1/w_1899,h_1899,c_limit/Fry-JustinBieberDocuseries.jpg'); background-size:contain; }
7th Jul 2021, 7:37 AM
visph
visph - avatar
+ 3
right click (or long press) on the image and select "view image" in context menu: the image load and you can copy the url in the address bar
7th Jul 2021, 7:43 AM
visph
visph - avatar
+ 2
exact label of menu entry depends of browsers ^^ you should have a way to display the image at least in a new tab... else you must click on the google link provided in the detail page to open original site and find the image from here yourself...
7th Jul 2021, 7:53 AM
visph
visph - avatar
+ 1
Yes I got it thank you very much
7th Jul 2021, 7:54 AM
Anand Raj
Anand Raj - avatar
0
And how did you find real img url
7th Jul 2021, 7:40 AM
Anand Raj
Anand Raj - avatar
0
Thanks visph👍👌
7th Jul 2021, 7:45 AM
Anand Raj
Anand Raj - avatar
0
There is no view image it's preview image but it's also not showing url its written encrypted something something
7th Jul 2021, 7:48 AM
Anand Raj
Anand Raj - avatar