Utilizing absolute positions and z-index can open up a world of possibilities.
In this particular demonstration, I harnessed the power of absolute positions and percentages to maintain responsiveness, while cleverly utilizing z-index to create overlapping effects with the lower div element.
Feel free to click on Full Page to see the magic in action. I hope you find this technique both informative and inspiring.
.background {
position: relative;
width: 100%;
height: 400px;
background: yellow;
}
.image {
position: absolute;
height: 350px;
width: 30%;
background: blue;
left: 15%;
z-index: 1;
}
.imagetext {
position: absolute;
left: 50%;
}
.text {
position: absolute;
width: 80%;
height: 100px;
left: 10%;
bottom: 0;
background: grey;
}
<div class="background">
<div class="image"></div>
<div class="imagetext">Lorem ipsum dolor sit amet</div>
<div class="text">Lorem ipsum dolor sit amet</div>
</div>