css background two color gradient code example
Example 1: css horizontal linear gradient
background: linear-gradient(to left, red, blue);
Example 2: css horizontal gradient background color
.foo {
background-image: linear-gradient(red, blue);
}