I have created two divs with gradients:
.container_middle_page{
margin: auto;
height: 100%;
display: flex;
flex-direction: column;
}
.container_middle_page_up{
background-image: linear-gradient(to top, #F28118,white);
height: 50%;
display: flex;
justify-content: flex-end;
}
.container_middle_page_down{
display: flex;
justify-content: flex-end;
background-image: linear-gradient(to bottom, #F28118,white);
height: 50%;
}
<div class="container_middle_page">
<div class="container_middle_page_up">Div1</div>
<div class="container_middle_page_down">Div2</div>
</div>
Now I want to add a background image that is visible in front of both divs with gradients. If I try something like:
background-image: url("/path") no-repeat, linear-gradient(to bottom, #F28118,white);
I am only able to set the background for one of the two divs. How can I set the background for both divs?