StMark Posted August 12, 2022 Share Posted August 12, 2022 Site URL: https://www.stmarkbattlecreek.org/ Hello! We are trying to add a CSS to our website that uses the Hayden template (Bedford Family) to make our menu bar float as people scroll down. Anyone out there able to give us a hand? Link to comment
Solution paul2009 Posted August 12, 2022 Solution Share Posted August 12, 2022 (edited) 1 hour ago, StMark said: We are trying to add a CSS to our website that uses the Hayden template (Bedford Family) to make our menu bar float as people scroll down. You'll need to fix the position of the header and then, because the header will now be obscuring some of the page content, you'll need to add some extra padding to the top of the page's main content. You should be able to do this with something like this (in Design > Custom CSS😞 #header { position: fixed; } .main-content { padding-top: 140px; } Example: Edited August 12, 2022 by paul2009 StMark 1 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
StMark Posted August 12, 2022 Author Share Posted August 12, 2022 1 hour ago, paul2009 said: You'll need to fix the position of the header and then, because the header will now be obscuring some of the page content, you'll need to add some extra padding to the top of the page's main content. You should be able to do this with something like this (in Design > Custom CSS😞 #header { position: fixed; } .main-content { padding-top: 140px; } Example: This is amazing! Thank you sooooo very much! paul2009 1 Link to comment
paul2009 Posted August 12, 2022 Share Posted August 12, 2022 You're welcome 🙂 About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. 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