I am looking to create a dynamic mobile image slider using Bootstrap carousel with overlaying images. However, I am facing two issues with responsive resizing and the overlapping of sections due to absolute positioning.
<section>
<h2 style="text-align: center;">Interactive Mobile Experience</h2>
<div class="row" style="margin: 50px 0;">
<div class="col-6" align="center">
<div class="carousel slide" data-ride="carousel" style="position: absolute; left: 0; height: 100px; width: 50px;">
<div class="carousel-inner">
<div class="carousel-item active" data-interval="1000">
<img src="resources/assets/images/oneplus6_phone_blue_screen.png" style="height: 100px;">
</div>
<div class="carousel-item" data-interval="1000">
<img src="resources/assets/images/oneplus6_phone_red_screen.png" style="height: 100px;">
</div>
</div>
<img src="resources/assets/images/oneplus6_phone.png" style="position: absolute; top: 0; left: 0; height: 100px;">
</div>
</div>
</section>
<section>
<div class="row align-items-center justify-content-center">
<div class="col-lg-4">
<h2>Let's Collaborate on Innovative Ideas!</h2>
<a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a8c1c6cec7e8cdd0c9c5d8c4cd86cbc7c5">[email protected]</a>?Subject=Website-Contact%20Form" target="_top"><button type="button" class="btn btn-outline-danger heartbeat">Get in Touch!</button></a>
</div>
</div>
</section>