1body{
2 /*Radial Gradient*/
3 background-image: radial-gradient(#EA52F8 5.66%, #0066FF 94.35%);
4 /*Linear Gradient*/
5 background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
6}
1/*From bottom to top*/
2background: rgb(166,166,166);
3background: linear-gradient(0deg, rgba(166,166,166,1) 0%, rgba(255,255,255,1) 29%);
1body{
2 background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
3}
1The general syntax of linear-gradient is-
2background: linear-gradient(gradient direction, color1 , color2 , color3, .....);
3
4Forexample-
5background: linear-gradient(46deg,green,blue,yellow,pink);
6
7NOTE: (common mistake) we forget to write the semi-colon (;)