I have this HEROTEXTBOX on top of my page on the header, it containes texts and image.
.topbannerbox {
position: absolute;
width: 1000px;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
and this is my Header CSS:
header {
background-image: url(imgs/covertoplight3.jpg);
background-color: #fff;
background-size: cover;
background-position: center;
height: 100vh;
background-attachment: fixed;
}
ABSLOUTE MAKES THIS STAY ON TOP .. if I change it to FIXED it will scroll down but ON TOP of everything in my page body. how do I make it to scroll down hidden in at the top where the header ends ?
HTML header:
<header>
<!-- Load font awesome icons -->
<!-- The social media icon bar -->
<div class="icon-bar">
<a href="#" class="facebook"><i class="fab fa-facebook"></i></a>
<a href="#" class="linkedin"><i class="fab fa-github-alt"></i></a>
<a href="#" class="youtube"><i class="fab fa-youtube-square"></i></a>
<a href="#" class="twitter"><i class="fab fa-twitter-square"></i></a>
</div>
<nav>
<div class="menu-icon">
<i class="fa fa-bars fa-1x"></i>
</div>
<div class="logo">
</div>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Login</a></li>
<li><a href="#about">Skills</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<div class="parts">
<div id="particles-js"></div></div>
<div class="topbannerbox" >
<div class="wrap" >
<br>
<div class="mobilelogo"><center><img class="logoscreen logoscreen1440 logoscreen1080 logoscreen1366" src="css/imgs/lojo2.png"></center></div>
</div>
<center><hr width="45%" style="border: 1px dashed #7f7a77;" /></center>
<br>
<div class = "topmid2"> <center><h1 >Because average is not acceptable, </h1></center></div>
<br>
<div class = "topmid"><center><h2><font color="455268" ><b>we go beyond to bring you a memorable experience. </b></font></h2></center></div>
<br>
<div class="headbutton headbutton1080 headbutton1366 headbuttonm"> <a class="btn btn-full" href="#about">Who am I ?</a>
</div>
</div>
</header>
Here is how the header looks like at top
I would really like to figure this one out .. hope someone can help me fix itt.
I tried doing a lot and didn't work for me ..
any ideas ?