Any help would be much appreciated.
Below is a simplified code snippet. The issue I’m having is the “logo” class is positioned exactly as I would want it to be, that is relative to the entire page/window. So as I scroll down the page the “logo” elements move down the page within the parent element.
The issue is that despite the fact the “logo” element is a child of the “page” element the “logo” is always visible even when outside of the parent’s bounds despite the setting the parents “overflow” to “hidden”.
If anyone knows how to rectify the issue with CSS that would be fantastic and preferred. jQuery (JavaScript) is also an option though I would prefer to steer away from this if I can as I’m very aware the site is going to be very JavaScript heavy once complete.
<style>
.page{
width:100%;
height:1000px;
overflow:hidden;
}
.logo{
position:fixed;
margin:20px;
}
</style>
<div class="page">
<div class="logo"></div>
<div>
<div class="page">
<div class="logo"></div>
<div>