I'm not getting my background to change its image. What could be wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I'm not getting my background to change its image. What could be wrong?

17th Jun 2017, 9:28 AM
Josanne Monsegue
2 Answers
+ 3
If you try to set some css background image with an empty <body>, you will see anything until you specify some heigth, as default 'display' css property value is 'block', wich behaviour is to fit height size to content, so default height of empty <body> is zero ^^ I don't know if it could help (it could be plenty of other reasons), as you doesn't provide your code for let us see what's your specific problem/mistake :P
17th Jun 2017, 12:19 PM
visph
visph - avatar
0
Could you share your code from Code Playground?
17th Jun 2017, 9:37 AM
Calviղ
Calviղ - avatar