+ 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

10th Oct 2020, 1:28 PM
$rija $aha [ Inactive For Some Days ]
$rija $aha [ Inactive For Some Days ] - avatar
5 Answers
+ 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).
10th Oct 2020, 2:15 PM
EmmanueLZ.
EmmanueLZ. - avatar
+ 3
EmmanueLZ. Thanks for the help. I wanted it to stop repeating. Again thank you. Merci.
10th Oct 2020, 2:32 PM
$rija $aha [ Inactive For Some Days ]
$rija $aha [ Inactive For Some Days ] - avatar
+ 1
So you want the background for body to have same color as background for div?
10th Oct 2020, 1:34 PM
Abhay
Abhay - avatar
+ 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...
10th Oct 2020, 2:35 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
It is working as expected .
10th Oct 2020, 1:53 PM
šŸ‡®šŸ‡³VivekšŸ‡®šŸ‡³
šŸ‡®šŸ‡³VivekšŸ‡®šŸ‡³ - avatar