gradient css left to right code example
Example 1: css horizontal gradient background color
.foo {
background-image: linear-gradient(red, blue);
}
Example 2: how to make a linear gradient in css
/* Add the class name insted of class */
.class {
background: linear-gradient(to top, #000000, #fffffff);
}