+ 6

How do I remove the weird lines on the linear gradient?

I'm getting these weird lines on my background gradient which I always used to get but I would return back to a smooth background with background-size:cover;. Why doesn't that work and how can I fix it? https://code.sololearn.com/W6785Tfe1H6G/?ref=app

30th Apr 2019, 2:17 AM
Coder
Coder - avatar
5 Answers
+ 4
Add html, body { height: 98%; }
30th Apr 2019, 2:35 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 8
CalviŐ˛ Thank you! Any explaination of why adding the heights affects the background to change? Why doesnt background size work?
30th Apr 2019, 2:37 AM
Coder
Coder - avatar
+ 6
CalviŐ˛ Thanks!
30th Apr 2019, 1:05 PM
Coder
Coder - avatar
+ 4
Webview on Sololearn has one problem, which it's body is not defined, you need to see it manually. Your code should work on browsers, this is only Sololearn code playground programming issue. They should have set the body height by default.
30th Apr 2019, 2:40 AM
CalviŐ˛
CalviŐ˛ - avatar