https://i.sstatic.net/j42by.png
The image above represents my ideal design. The white space acts as a Bootstrap container, containing two divs with full width within that container. The specific widths, such as col-md-7 or col-md-5, are not important.
I have experimented with the following code:
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="FirstDIV">
abcd
</div>
</div>
<div class="col-md-6 overlay-text">
<img src="#" height="auto" class="w-100"/>
<button>Abc</button>
</div>
</div>
</div>
.overlay-text {
align-self: flex-start;
padding:20px;
margin-top: 5%;
}
.FirstDIV {
background-color: #FDC9B3;
transform: translateX(15%);
height: 200px;
}
.overlay-text {
align-self: flex-start;
padding:20px;
margin-top: 5%;
}
.FirstDIV {
background-color: #FDC9B3;
transform: translateX(15%);
height: 200px;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="FirstDIV">
abcd
</div>
</div>
<div class="col-md-6 overlay-text">
<img src="https://d1v3slut4s2mfy.cloudfront.net/4febbf2819ab561801f175b47cf75b3413985518/assets/images/quote-video-placeholder.jpg" height="auto" class="w-100"/>
<button>Abc</button>
</div>
</div>
</div>
https://jsfiddle.net/n8cj4o3d/
The issue mostly lies in transform: translateX(15%);
.