Why doesn't the background-image work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
2nd Jun 2018, 9:39 PM
Eli Ben Shimon
Eli Ben Shimon - avatar
7 Answers
+ 3
right after body{ background-image: src(...); } you have body{ background: white; } Essentially you are overwriting the background image rule. CSS rules are read top to bottom so if you contradict a previous rule, the one that is further down will be applied. https://code.sololearn.com/We4hEfIize8Y/?ref=app
2nd Jun 2018, 10:09 PM
064XP
064XP - avatar
+ 5
thank you 064xp ,and Andre Daniel!!
3rd Jun 2018, 4:41 AM
Eli Ben Shimon
Eli Ben Shimon - avatar
+ 4
Andre Daniel , i did it
2nd Jun 2018, 9:52 PM
Eli Ben Shimon
Eli Ben Shimon - avatar
+ 1
Can you relink the code in the description instead of the question title? I can't click it there.
2nd Jun 2018, 9:45 PM
Andre Daniel
Andre Daniel - avatar
+ 1
Savant in addition to what 064XP said, you also started the link with a space. (" https...") the url should be "https..." for the image to load. Just be aware of these small differences, as they change a lot.
2nd Jun 2018, 10:13 PM
Andre Daniel
Andre Daniel - avatar
+ 1
no problem:)
3rd Jun 2018, 4:44 AM
064XP
064XP - avatar
0
!!
21st Apr 2020, 2:20 PM
JC JINKENS
JC JINKENS - avatar