Jump to content

How to fix text blocks on page while images scroll behind?

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Hi there,

I would like to fix the text blocks on my website so that when scrolling through the images, the text blocks stay in place.

Website: https://www.object750.com/

I would like the logo header, 'coming soon' and 'instagram' text blocks to be fixed.

Any ideas how to do this?

Thank you

  • Solution
Posted

You can identify the block IDs and then fix their position on the page like this with Custom CSS:

//Coming
#block-yui_3_17_2_1_1691333637302_7095 {
    position: fixed;
    top: 50%;
    left: 10%;
}
// Soon
#block-b9911e3618d3d3eddf31 {
    position: fixed;
    top: 50%;
    right: 10%;
}

//Instagram
#block-0083c4e84269bef21a19 {
    position: fixed;
    top: 90%;
    left: 50%;
}

// Image
#block-yui_3_17_2_1_1687106281601_11419 {
    position: fixed;
    top: 50%;
    left: 50%;
}

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.