How to make linear gradient full screen? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make linear gradient full screen?

9th Feb 2021, 11:37 PM
Maxim Cherkasov
Maxim Cherkasov - avatar
7 Answers
+ 1
yes , that is why i said to use viewport height like height:100vh or less.
10th Feb 2021, 12:01 AM
Abhay
Abhay - avatar
+ 1
https://code.sololearn.com/WXudckLsyFde/?ref=app Here is my code. And the gradient repeats on my phone's screen. How to spread it?
9th Feb 2021, 11:40 PM
Maxim Cherkasov
Maxim Cherkasov - avatar
+ 1
Abhay Thanks a lot!:)
10th Feb 2021, 12:05 AM
Maxim Cherkasov
Maxim Cherkasov - avatar
0
Hello set the height to viewport height for body.
9th Feb 2021, 11:49 PM
Abhay
Abhay - avatar
0
This is part of the CSS course. Keep learning and you will find lots of your questions will get awnsered: https://www.sololearn.com/learning/2242/
9th Feb 2021, 11:51 PM
Pieter Edwards
Pieter Edwards - avatar
0
Hello. Thanks. I set set height 800px. But is there other value for that to see full screen gradient on all screens, not only on my phone. Something like value Max or Full screen, or 100%. I can't get..
9th Feb 2021, 11:56 PM
Maxim Cherkasov
Maxim Cherkasov - avatar
0
👍
10th Feb 2021, 12:06 AM
Abhay
Abhay - avatar