Jump to content

CSS code for sticky navigation on Brine Layout Pages

Recommended Posts

Site URL: https://salamander-cowbell-y9xl.squarespace.com/

Hey all,

I am using the BRINE template and have managed to make my navigation bar stick to the top of the page on the index page when scrolling using the following code;

.Header {
 position: fixed;
 width: 100%;
 z-index: 2000;
 }

However on the regular pages such as About and Contact the navigation bar completely disappears leaving only the logo on the header bottom. (please see the attached files)

 

I should note I have placed the Primary navigation on the Header-Top and the logo on the Header-Bottom as I want the nav bar to have a separate background colour from the logo.

 

My website: https://salamander-cowbell-y9xl.squarespace.com/

Password: Adam2020

 

Thanks in advanced!

Adam

 

index_page.PNG

about.PNG

Link to comment
  • SpencerC changed the title to CSS code for sticky navigation on Brine Layout Pages
  • Replies 2
  • Views 792
  • Created
  • Last Reply

It should be

.Header--top {
    position: fixed;
    width: 100%;
    z-index: 2000;
}

image.thumb.png.23b2acf0a3d43b406eebf8f2085e7cf3.png

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.