Jump to content

How to Make a Navigation Menu Static

Recommended Posts

On 3/11/2022 at 11:48 AM, saschulze said:

Site URL: https://www.infinix.com/

Hello,

How can I make the navigation menu at the top of our website static (remains at the top) when someone scrolls down on the page?

Stephanie

You mean make it sticky to top on scroll down?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Hi,

Use this code in Design -> Custom CSS

@media screen and (min-width:992px){
div#page-header {
    position: fixed;
    top: 28px;
    z-index: 999999;
    background: white;
    width: 100%;
}


.language {
    position: fixed;
    top: 0;
    background: white;
    z-index: 99999;
    width: 100%;
}

body>div[style="text-align: right;"] {
      position: fixed;
      top: 0;
      background: white;
      z-index: 99999;
      width: fit-content;
      right: 0;
}
}

Please use the like button if it helps you!

Best,
Leopold

Ninja Kit Extension: Upgrade your Squarespace website without coding.

YouTube Preview    -    FREE DOWNLOAD

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.