Hello!
I am trying to trigger my existing sticky header below the hero banner on my website. When I move the header below the banner currently, it doesn’t stick when I scroll further down the page.
Any help is greatly appreciated!
Thanks in advance.
Hello!
I am trying to trigger my existing sticky header below the hero banner on my website. When I move the header below the banner currently, it doesn’t stick when I scroll further down the page.
Any help is greatly appreciated!
Thanks in advance.
@Pkschmitt I asked a developer colleague and here’s what they said: You might currently be using a CSS property of “position: sticky;” on the header. With that property the header will stick while the parent element (the section this header lives inside of. In this case it seems like maybe the header is coded inside of the hero banner) is on screen, but once the user scrolls past that parent div the element will scroll out of view as well. Using “position: fixed;” usually would take care of that. I’m not certain that is the issue though. This link might help. https://codepen.io/kevinpowell/pen/eXwdwq
Hope that helps!