Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

CSS code for sticky navigation on Brine Layout Pages


awcs
Go to solution Solved by bangank36,

Question

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 post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

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

Legend! This works a treat, thanks for your time and help with this issue!

Posted Images

2 answers to this question

Recommended Posts

  • 1

It should be

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

image.thumb.png.23b2acf0a3d43b406eebf8f2085e7cf3.png

 

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement, Enable Pinch/Zoom on lightboxGeolocation Automatic Currency Converter, Sortable Table from GSheet
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...