css gradient

CSS
\\code for a basic gradient background
   #grad {
  background-image: linear-gradient(red, yellow);
}  .foo {
	background-image: linear-gradient(red, blue);
}
div {
    background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%);
}

 
background: linear-gradient(to left, #333, #333 50%, #eee 100%);background: linear-gradient(to left, red, blue);.element {
    background: linear-gradient(90deg, pink 50%, cyan 50%);
}
Source

Also in CSS: