Jump to content

Sticky overlay scroll cutting off content

Recommended Posts

Hi - Im new to css and ran into a hiccup. I have a code to create a sticky effect for the page sections. However, it cuts off a section "How to..." and the top of the section remains sticky while scrolling - not displaying full section - until the next section is scrolling up, in this case "FAQ."

How can i fix this?

Here's the code:

#page .page-section {position: sticky!important; top: 0px!important}
html {scroll-behavior: smooth}

Screen Shot 2022-12-08 at 6.06.20 PM.png

Screen Shot 2022-12-08 at 6.06.24 PM.png

Screen Shot 2022-12-08 at 6.06.29 PM.png

Screen Shot 2022-12-08 at 6.06.41 PM.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

1 hour ago, WorkflowbyJo said:

Hi - Im new to css and ran into a hiccup. I have a code to create a sticky effect for the page sections. However, it cuts off a section "How to..." and the top of the section remains sticky while scrolling - not displaying full section - until the next section is scrolling up, in this case "FAQ."

How can i fix this?

Here's the code:

#page .page-section {position: sticky!important; top: 0px!important}
html {scroll-behavior: smooth}

Screen Shot 2022-12-08 at 6.06.20 PM.png

Screen Shot 2022-12-08 at 6.06.24 PM.png

Screen Shot 2022-12-08 at 6.06.29 PM.png

Screen Shot 2022-12-08 at 6.06.41 PM.png

Can you share your site with the protected password so I can take a look?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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.