How do I remove the weird lines on the linear gradient? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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
4 Antworten
+ 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