<body class="signle-layout">
<section id="home" class="pt-page pt-page-1" data-id="home">
<p>some html css js items</p>
</section>
<section id="about" class="pt-page pt-page-2" data-id="about">
<p>some html css js items</p>
</section>
<section id="services" class="pt-page pt-page-3" data-id="services">
<p>some html css js items</p>
</section>
<section id="clients" class="pt-page pt-page-4" data-id="clients">
<p>some html css js items</p>
</section>
<section id="contact" class="pt-page pt-page-5" data-id="contact">
<p>some html css js items</p>
</section>
</body>
<style>
.pt-page {
width: 100%;
height: 0;
position: absolute;
opacity: 0;
top: auto;
left: 0;
display: flex;
min-height:620vh;
background-color: #fff;
visibility: hidden;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.signle-layout{
background: #f3f3f3;
min-height: fit-content !important;
}
</style>
I have a unique single page website template where each page has different sizes. Despite my attempts to fix the size issue by adjusting the classes, I still encounter problems with the layout. When I set the min-height parameter of each section to "fit-content" or define the size manually, the body background still appears between sections as shown in the example image. Check out a screenshot here