Who can I set the black box to be on top of the second box? As you can see every brown box is 100px and the black box is 150px. So I need the black box to fill the second half brown box too. But I cannot figure out any way to achieve that.
.container {
display: flex;
}
.contents {
width: 100px;
height: 100px;
background-color: antiquewhite;
border: dotted 1px #c7c7c7;
position: relative;
}
.overflowing-div {
position: absolute;
width: 150px;
height: 50px;
background-color: black;
}
<div class="container">
<div class="contents">
<div class="overflowing-div"></div>
</div>
<div class="contents"></div>
<div class="contents"></div>
<div class="contents"></div>
</div>
