Archived topic
Sticky Header Problem
3 replies · Started by Andreas on June 19, 2021
Hi,
on my site i want to use a sticky header - with a logo left and the menu right.
For the sticky header function i found a code from you on this board:
#masthead {
position: -webkit-sticky;
position: sticky;
top: 0;
}
So far so good. The only problem i see is, that sometimes when you scroll down, that content from the site or the sidebar is laying over the sticky header - my url: shorturl.at/isCIT
When you make the site a little bit smaller, then you see that the links from the sidebar for example are laying over the sticky header.
How can i fix this?
Greets
Hi Andreas,
Change you CSS to this:
#masthead {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 99;
}
Let me know if this helps :)
Thank you very much, it solved my problem!!!
Your support is awesome and incredible fast. Such a great support is really rare.
Thanks again!!
No problem :)