Css code didn't worked? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Css code didn't worked?

Why this css code didn't worked? body { background-image:https://images.app.goo.gl/4oxdnY4YaRvgUHK78; }

25th Apr 2022, 5:24 PM
Yug
Yug - avatar
7 Answers
+ 4
Chris Coder forget about -image, you should always use background instead.
26th Apr 2022, 1:31 PM
Calviղ
Calviղ - avatar
+ 1
Still didn't worked body { background-image:url(https://tenor.com/view/thara-bhai-joginder-gif-22578483); }
26th Apr 2022, 8:50 AM
Yug
Yug - avatar
26th Apr 2022, 8:50 AM
Yug
Yug - avatar
0
You should include the "url()" function, wrapping the link in it.
25th Apr 2022, 6:14 PM
Adebiyi Itunuayo
Adebiyi Itunuayo - avatar
0
Yes as FFFF:0000h stated. But your link is invalid. When you get a working one don't forget the quotation marks inside the function background-image: url("image.jpeg");
25th Apr 2022, 6:34 PM
Chris Coder
Chris Coder - avatar
0
Try: body { background-image: url("https://images.app.goo.gl/4oxdnY4YaRvgUHK78"); }
27th Apr 2022, 5:00 PM
Usman
Usman - avatar