Jump to content

How to make an image sticky

Go to solution Solved by Ziggy,

Recommended Posts

Hi all,

I was wondering does anybody know how to make an image sticky (only not on mobile)? This is the website I'm working on loesvisser.squarespace.com (password is CacaoCreatives). The image I would like to make sticky is the one at the page called 'Calendar' (screenshot attached) and it is this image that I would love to make sticky: #block-1a76a584632c2b57cb53

Thank you so much and greetings from Amsterdam!

Alexandra

Screen Shot 2023-03-17 at 5.42.13 PM.png

Link to comment
  • Solution

Hello Amsterdam!

Try adding this code to the Custom CSS on your website:

@media only screen and (min-width:768px) {
  .fe-block-1a76a584632c2b57cb53 {
    position: sticky !important;
    -webkit-position: sticky !important;
    top: 0;
    z-index: 999;
  }
}

Hope that helps!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.