how to create a gradient with css code example Example: css horizontal linear gradient background: linear-gradient(to left, red, blue);