+ 5
Why is the background of the body not working as of this div???
Kindly help if you know the solution. Here's the code source. 👇 https://code.sololearn.com/WzhL3hMcE5Iv/?ref=app
5 Réponses
+ 2
$rija $aha hi,
Maybe you mistake for the second %value, you meant to give 100% as the color endpoint.
Also you might want to give a height of 100vh to your body element so it will cover the whole background (not repeating on several lines).
+ 3
EmmanueLZ. Thanks for the help. I wanted it to stop repeating. Again thank you. Merci.
+ 1
So you want the background for body to have same color as background for div?
+ 1
$rija $aha your welcome, indeed I corrected my answer in between cause it seems the height property set to 100vh is enough to stop the gradient repeating...
0
It is working as expected .