Jump to content

Foster template - how to keep navigation bar visible when scrolling

Recommended Posts

  • Replies 5
  • Views 1.7k
  • Created
  • Last Reply
.Header-inner--top {
position: fixed;
z-index: 9999;
display: block !important;
left: 0;
right: 0;
top: 0;
margin-left: auto;
margin-right: auto;
}

Try pasting this code in your Custom CSS.

You will have to change top: 0 with the number of px you'd like to move your header from the top of the browser and then move all the content below as well.

To move all your content you can use:

.Site-inner {
margin-top: 100px;
}

and change "100px" with the margin you prefer

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.