background gradient vertical css

CSS
.element {
    background: linear-gradient(pink 50%, cyan 50%);
}.element {
    background: linear-gradient(90deg, pink 50%, cyan 50%);
}
Source

Also in CSS: