Jump to content

Maple: How to make navigation fixed/sticky?

Recommended Posts

  • Replies 6
  • Views 1.1k
  • Created
  • Last Reply

@tuanphan thank you for checking!

I tried the following code, but you can see that the bar appears to be floating rather than fixed to the top of the screen...there is a gap above the nav bar/header through which you can see the content underneath as you scroll...do you have a fix for this or new code all together? Thanks again!

.Header-inner { z-index: 9999; width: 100%; } .Header{ z-index: 9998; position: fixed; width: 100%; }

@media screen and (max-width: 3000px) { .Index-page--has-image .Index-page-content { margin-top:104px !important; } }

@media screen and (max-width: 500px) { .Index-page--has-image .Index-page-content { margin-top:0px !important; } }

Link to comment
  • 3 months later...

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.