Skylab Posted October 11, 2022 Share Posted October 11, 2022 Site URL: https://skylabnyc.com/reshades Hello. I'm using this code to make a sticky navigation on a Brine 7.0 template: /* Fixed Header */ .Header { position: fixed; z-index: 9999; width: 100%; top: 0px; } .Content-outer { margin-top: 80px; } This code works, but when I go and add an announcement bar the sticky nav covers it up. I played with the top 0px but that just leaves a gap when I scroll. Is there a way to include the announcement bar with the sticky nav code, so it all travels together when a user scrolls? Thank you! Link to comment
Ziggy Posted October 11, 2022 Share Posted October 11, 2022 You can try this technique: https://inscapewebdesign.com/free-squarespace-hacks/2019/6/11/sticky-fixed-header-for-brine-templates There are many threads in the forum providing slightly different ways of doing this as well as lots of blogs, hopefully one of those will fit your needs if this doesn't. tuanphan 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
tuanphan Posted October 12, 2022 Share Posted October 12, 2022 On 10/11/2022 at 10:28 AM, Skylab said: Site URL: https://skylabnyc.com/reshades Hello. I'm using this code to make a sticky navigation on a Brine 7.0 template: /* Fixed Header */ .Header { position: fixed; z-index: 9999; width: 100%; top: 0px; } .Content-outer { margin-top: 80px; } This code works, but when I go and add an announcement bar the sticky nav covers it up. I played with the top 0px but that just leaves a gap when I scroll. Is there a way to include the announcement bar with the sticky nav code, so it all travels together when a user scrolls? Thank you! Change position: fixed; to position: sticky; (and keep top: 0px;) Skylab 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Skylab Posted October 20, 2022 Author Share Posted October 20, 2022 You're the best, i'll go try it! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment