I've been working on trying to position an image between two divs on my webpage. So far, I've managed to place the image there but it's not responsive (only displays correctly at a width of 1920) and ends up overlapping the text in both divs:
Check out this screenshot from my website
Here is the CSS I'm using:
.btwimg {
width: 90%;
height: auto;
position: absolute;
transform: translate3d(-20%, -50%, 0);
z-index: 1;
left: 50%;
background: url("../img/lara2.png");
background-repeat: no-repeat;
box-shadow: 0 5px 7px rgba(0,0,0,0.1);
}
and here is the HTML code:
<div class="btwimg">
<img src="img/lara2.png">
</div>
If you want to see the desired outcome, take a look at this reference image.
Do you think it's possible to achieve what I have in mind? Any help would be greatly appreciated.