CSS gradient | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

CSS gradient

How can I set gradient in such a way that the gradient effect lies only to sreen and does not get affected by the content of the page??

8th Jan 2023, 6:35 AM
Bits & Bytes
Bits & Bytes - avatar
3 Answers
+ 4
You probably can try to implement the gradient effect on <body> and put the page content inside a <div> centered on page/body.
8th Jan 2023, 7:17 AM
Ipang
8th Jan 2023, 8:48 AM
JaScript
JaScript - avatar
+ 2
Thanks everyone
8th Jan 2023, 11:30 AM
Bits & Bytes
Bits & Bytes - avatar