Jump to content

How Can I Make A Specific Section Sticky With Scroll

Recommended Posts

  • Replies 1
  • Views 582
  • Created
  • Last Reply
Posted
1 hour ago, thejschweigert said:

Site URL: https://www.joshuaschweigert.com/about

I'm trying to make a table of contents on my really long "about me" page sticky in the sidebar for desktop only. Thank you!

Screen Shot 2021-11-30 at 7.56.06 PM.png

You can try adding to Home > Design > Custom Css

section[data-section-id="618b3c0c2555ae4fcb2506f9"]
  .sqs-layout
  > .row
  > .col:first-child {
  position: -webkit-sticky;
  position: sticky;
  top: 70px;
  left: 0;
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.