I'm encountering an issue with HTML. I need to overlap two lines of text with an image on my website. I'm using bootstrap4 and working within a template where the code works perfectly:
<section class="position-relative dark-overlay py-3 py-lg-7 overflow-hidden" data-parallax="scroll" data-image-src="img/photo/erii-gutierrez-487083-unsplash.jpg" data-speed="0.3" data-position-x="right">
<div class="container overlay-content hero hero-page">
<ul class="breadcrumb justify-content-center no-border mb-0">
<li class="breadcrumb-item"><a class="text-white" href="index.html">Home</a></li>
<li class="breadcrumb-item text-white active">Ladies</li>
</ul>
<div class="hero-content pb-5 text-center text-white">
<h1 class="hero-heading">Ladies</h1><p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.</p>
</div>
</div>
</section>
However, when I try to replicate this format in another section of my site, it doesn't seem to work as expected:
<section class="dark-overlay overflow-hidden" data-parallax="scroll" style="width:100%">
<div class="position-relative container overlay-content hero hero-page">
<img src="img/fotos/cava720.gif" width="100%">
<div class="hero-content text-center text-white">
<h1 class="hero-heading">Title</h1><p class="lead">subtitle</p>
</div>
</div>
</section>
Can anyone shed light on what might be causing this discrepancy?
It seems like there might be some JavaScript involved in the template that I don't fully comprehend...
Appreciate any help!