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