userimage

How to make full body with a single color or making the body with 2 color from deep color to light using css

I need to make html body color fully a single color using css or making the body with 2 color from deep color to light like from above part of body will be deep color and bottom part will be light color. How to make so?

userimage

To make the whole body of single color use below code


body {
	background-color: <your color/code>;
}


To make body with 2 color gradient:


body {
    height:100%;
    background: linear-gradient(0deg, <your light color>, <your dark color> 50%) no-repeat;
}
Answer is