Having trouble creating a "collapsing header" design where the page content scrolls over the banner image. I've tried adjusting z-index and positioning properties in CSS, but can't achieve the desired effect. Any help or guidance would be greatly appreciated!
I came across a helpful example of what I'm aiming for here:
The website in question is:
Thank you!!!
Edit:
Referencing this CodePen: c o d e p e n .io/nickcil/pen/oiahg
The challenge lies in having this structure:
<div class="header"><h1>Header</h1></div>
<main id="page"><h1>Content</h1></div>
Instead of just overlapping divs, I'm attempting to make the main content overlap the header div. As someone new to coding, this poses a difficulty for me, unsure if it's even feasible.