xxxxxxxxxx
.element {
background-image: linear-gradient(to bottom, blue, green);
}
xxxxxxxxxx
body{
/*Radial Gradient*/
background-image: radial-gradient(#EA52F8 5.66%, #0066FF 94.35%);
/*Linear Gradient*/
background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
}
xxxxxxxxxx
/* Using linear gradient */
div {
background: linear-gradient(to bottom, #e66465, #9198e5);
}
/* Using radial gradient */
div {
background: radial-gradient(circle, #ff0000, #0000ff);
}
xxxxxxxxxx
body{
background-image: linear-gradient(45.34deg, #EA52F8 5.66%, #0066FF 94.35%);
}