+ 1

Why the CSS code doesn't work?

Can somebody tell me why the background image which i set in the CSS isn't display on the page! https://code.sololearn.com/WlMiWf3q0dB6/?ref=app

23rd Mar 2018, 3:14 PM
Philipp John
Philipp John - avatar
2 Answers
+ 5
Because you didn't tell it where you're storing the image at. You put: background-image: url("css_logo.png"); ^What location is that referencing? Since you're not running your CSS from a server, you need to specify where it'll be obtaining the image from.
23rd Mar 2018, 3:21 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 4
Well where is the image hosted? You will need to provide a full url to this image when using on solo learn.
23rd Mar 2018, 3:20 PM
ihateonions