my problem is menu click scroll up and sticky header under title hide
my problem is menu click scroll up and sticky header under title hide so please any advice
enter image description here
please check this image so more idea
my problem is menu click scroll up and sticky header under title hide
my problem is menu click scroll up and sticky header under title hide so please any advice
enter image description here
please check this image so more idea
2
Answers
It sounds like you have a menu that, when clicked, scrolls the page up, and you want to ensure that a sticky header remains hidden underneath the title during this scroll. Here’s some advice on how to achieve this:
Sticky Header:
position: sticky
or JavaScript to add and remove classes for sticky behavior.Z-Index:
z-index
than the title or any other elements that might overlap with it. This will ensure that the header remains on top of other content while scrolling.Scroll Behavior:
Element Positioning:
fixed
orsticky
if you want them to stay in place during scrolling.Debugging:
Scroll Event Handling:
Testing on Different Devices and Browsers:
By following these steps and making sure your header, scrolling behavior, and element positioning are properly configured, you should be able to achieve the desired effect of a menu-triggered scroll with a hidden sticky header underneath the title. If you encounter specific issues or have more detailed requirements, please provide additional information for more targeted guidance.
Link : Try This One