Sticky header?
-
Hi, I’m trying to create a sticky header, and nothing seems to work. This seems like a really basic, common need issue but I’ve searched long and hard and come up with no guidance for Twenty Twenty Two.
In the site editor, I assigned the class .topnav to the navigation but it won’t work. Getting it sticky (using “fixed” rather than “sticky” in the css) did work briefly in the backend (but not the frontend), but I could not get the background to be consistently black as the page is scrolled. It just disappeared entirely on the frontend.
Along with that, I’d like to get the logo to automatically shrink as the page is scrolled.
Thanks in advance!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Sticky header?’ is closed to new replies.