background-image: linear-gradient(red, yellow, blue); code example Example: linear-gradient background: linear-gradient(to left, #333, #333 50%, #eee 100%);