I am trying to apply a full-page width background to a container-fluid element by giving it a position of fixed and height of 100%. However, I'm encountering an issue where the page scrolls when the content exceeds the height of the browser. The project is utilizing Bootstrap 4. Can anyone provide guidance on how to resolve this issue?
<div class="container-fluid kyc-page" >
<h1 class="head-text">KYC Verification</h1>
<div class="bannerWrapper"></div></div>
CSS:
.container-fluid.kyc-page {
background-image: url(../images/banner-img2.png);
height: 100%;
background-repeat: no-repeat;
background-size: cover;
position: fixed;
}
Any suggestions on achieving full background image without causing content overflow?