I'am trying to make a layout based in 3 part with the same picture.
I have 3 divs with different sizes and I'm trying to have the same background image in the div, I want the image to be visible only in the div and outside the boxes i want a color.
What it looks like so far (I added opacity so you can understand)
Thanks for your help.
.pannel {
position: absolute;
/* margin-top: 250px; */
background-attachment: fixed;
background: url('https://via.placeholder.com/1200');
background-size: cover;
background-repeat: no-repeat;
height: 800px;
width: 100%;
}
.wrap {
position: absolute;
display: flex;
justify-content: space-around;
background-color: #5CB8BD;
opacity: 0.5;
width: 100%;
}
.mid {
padding: 400px 10%;
}
.left,
.right {
padding: 300px 10%;
align-self: center;
}
.mid,
.left,
.right {
background-color: none;
border: solid 1px black;
}
<section class="pannel">
<div class="wrap">
<article class="left"></article>
<article class="mid"></article>
<article class="right"></article>
</div>
</section>