Reply To: Overlay with srcset instead of style= background-image

#10044846
Monique
Participant

Thanks, but it is not working. There is a large blac container around the image:

<section class="page-header page-header-modern page-header-background page-header-background-md  mb-0">
<div class="overlay overlay-color-secondary overlay-show overlay-op-7">
        <img src="/img/sph/sph_parallax_400X94.webp" alt="Achtergrondafbeelding" srcset="/img/sph/sph_parallax_400X94.webp 400w,
                     /img/sph/sph_parallax_500X117.webp 500w,
                     /img/sph/sph_parallax_900X211.webp 900w,
                     /img/sph/sph_parallax_1200X281.webp 1200w" sizes="100vw">
           </div>
		<div class="container">
			<div class="row">
				<div class="col align-self-center p-static text-center">
					<h1>Extra <strong>Breadcrumb Outside</strong></h1>
					<span class="sub-title">This is a subtitle example.</span>
				</div>
			</div>
		</div>

 
	</section>

Header overlay