Jump to content

Fixed Navigation on Mobile but NOT Desktop on 7.1

Go to solution Solved by Beyondspace,

Recommended Posts

  • Solution
On 9/30/2021 at 2:37 AM, renee.hartwick said:

Site URL: https://ave.squarespace.com/

Site: ave.squarespace.com
PW: theeyeshaveit

The clients I'm building this site for would love to have sticky/fixed nav on mobile but NOT on desktop, and I'm finding the CSS for that tricky. I gave the code from this post a try, but no luck. 

Has anyone else had success with this?

Add to Design > Custom Css

@media only screen and (max-width: 768px) {
  #header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.