Background-trouble | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Background-trouble

Why does the background repeat itself , while it has to be 100% of the document?? https://code.sololearn.com/Wz91lPFsUBVM/?ref=app

17th Jun 2018, 6:53 PM
Roel
Roel - avatar
4 Answers
+ 2
Roel It is 100% of the screen 😅, what yo want to do is maybe to create a background for the whole page but 100% means only the screen screen size to it for the whole page do it with height: auto;
17th Jun 2018, 7:00 PM
Michael55555
Michael55555 - avatar
+ 1
Im such a dumb person😣😣.... change html (screen) into body (to make the background appear in the whole visible part without repeating itself)
17th Jun 2018, 6:55 PM
Roel
Roel - avatar
+ 1
You also generally don't need to set the heigth to auto because it is the default value, and it would be cool if you tick the chop on the left side of a answer, so you help the other SoloLearners and the responder gets a few xp wich motivates him to write more well responses :)
17th Jun 2018, 7:11 PM
Michael55555
Michael55555 - avatar
+ 1
Michael Peters sorry, forgot to do that
17th Jun 2018, 7:39 PM
Roel
Roel - avatar