linear-gradient

CSS
background: linear-gradient(to left, #333, #333 50%, #eee 100%);.foo {
	background-image: linear-gradient(red, blue);
}\\code for a basic gradient background
   #grad {
  background-image: linear-gradient(red, yellow);
}  .element {
    background: linear-gradient(90deg, pink 50%, cyan 50%);
}
Source

Also in CSS: