Archived topic
Normal header used as sticky - some pictures and text visible over it
3 replies · Started by Stephen on March 12, 2022
http://www.stephenlavender.site
David gave me the CSS below to use my normal header as a sticky header.
This works well except that as I scroll through some pictures and some text are displaying on top of the header.
- Is some additional CSS I can use to stop this please?
Thanks
Stephen
.site-header,
#mobile-header {
position: -webkit-sticky;
position: sticky;
top: 0;
}
Hi Stephen,
I'm not seeing the issue on the home page but can you try this instead?
.site-header, #mobile-header {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 99;
}
Perfect thank you.
Everything stays hidden behind header now.
Thanks
No problem :)