Jump to content

Why is position: sticky not working?

Go to solution Solved by Ziggy,

Recommended Posts

Hi,

I want the logo to be fixed in the center while scrolling through the section. I have tried:

#block-yui_3_17_2_1_1702560513085_5689 {
  position: sticky;
  top: 0;
}

and a few variations of this, but i cant figure out why its not working, how it should work. I am adding the code in website tools -> custom css.

This is the website: https://www.ghostwoodfilm.com/mastering

Thanks in advance for your help

Edited by Valentin
Link to comment
  • Replies 3
  • Views 971
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

Try this adjustment, note targeting the FE block ID:

.fe-block-yui_3_17_2_1_1702560513085_5689 {
  position: sticky;
  top: 0;
}

 

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

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

Link to comment
28 minutes ago, Valentin said:

Thank you, that solved it

Happy to help, thanks for marking my post as the solution!

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

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

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.