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 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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 🙂 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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