Add two background color using css

<div class="demoItem"></div>
<style>
.demoItem
{
background: linear-gradient(90deg, #1E7DDB 50%, #2c7055 50%);;
height:400px;
}
</style>