Jump to content

Scrolling/Fixed Header

Recommended Posts

  • Replies 3
  • Views 2k
  • Created
  • Last Reply

add to Home > Design > Custom CSS

@media screen and (min-width:640px) {
/* Desktop */
header.Header.Header--bottom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding-bottom: 30px;
}
/* Remove Overlap Content */
.Content-outer {
    margin-top: 90px;
}
}
/* Mobile */
.Mobile-bar.Mobile-bar--top {
    position: fixed;
    top: 0;
    z-index: 999;
    left: 0;
    right: 0;
}

 

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
On 1/20/2020 at 1:37 AM, ELB888 said:

Would this code work to make a header fixed on a 7.1 template?  

I don't know, haven't tested with 7.1. You can try

If it doesn't work, you can ask a question, include link to your site

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

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.