Jump to content

Why I cannot make this part of my website sticky?

Recommended Posts

  • Replies 1
  • Views 266
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

1 hour ago, llllllcw_Chelsea said:

Site URL: https://www.chenluwang.me/dreaming-elf

Hi I would like to keep this part sticky when I scroll the screen, I used this code but it could not work at all. Thanks a lot!

@media screen {
#block-yui_3_17_2_1_1638743045081_250450 .sqs-block-content{
    position: sticky;
	position: -webkit-sticky;
    top: 100px;
}
}

image.thumb.png.b1ac56294a5a1134ab48c93262863ee1.png

Try adding to Home > Design > Custom Css

#collection-footer-608775107959d12c3041031f > .row  > .col > .row > .span-2 {
  position: sticky;
  position: -webkit-sticky;
  top:0;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

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.