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

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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.

Buy me a coffee

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 🙂

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation 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.

Buy me a coffee

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.