Jump to content

Request: Floating Menu CSS code for Hayden template

Go to solution Solved by paul2009,

Recommended Posts

  • Solution
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:

image.thumb.gif.31fcd9101e49b044d54303ea041cc435.gif

Edited by paul2009

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
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:

image.thumb.gif.31fcd9101e49b044d54303ea041cc435.gif

This is amazing! Thank you sooooo very much!

Link to comment

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.