div{ width:200px; height:200px; background: linear-gradient(to left,red 50%,green 50%);; }