how to set linear gradient on image css code example Example: css horizontal linear gradient background: linear-gradient(to left, red, blue);