how to change a color in css to a linear gradient code example Example: css horizontal gradient background color .foo { background-image: linear-gradient(red, blue); }