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 2
  • 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?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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
  • 2 months later...

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.