Can I Make My Top Menu Sticky with CSS?
-
Is it possible to make my top menu bar always remain visible at the top of the window when the viewer scrolls down the page? Can I do it with CSS? I don’t have a business plan so I can’t use a plugin.
The blog I need help with is: (visible only to logged in users)
-
Hi there,
Absolutely! Try this CSS: https://en.support.wordpress.com/custom-design/editing-css/
.main-navigation { position: fixed; z-index: 9999; }Let me know if that works for you or if you have any further questions or issues. :)
-
Hi Torres,
Thanks for the reply. That absolutely works but it moves my header image flush to the top of the page and is overlapped by the top menu bar. My top menu bar is 68px high. Is there a way to make my header image sit 68px from the top?
Thanks!
-
-
- The topic ‘Can I Make My Top Menu Sticky with CSS?’ is closed to new replies.