Jump to content

Fixed Image Next to Scrolling Text

Recommended Posts

Hi! I am trying to mimic this webpage's (https://www.reganarts.com/books/2016/the-godfather-notebook-special-edition/index.html) ability to have a static element remain fixed alongside a scrolling element. Essentially, I am trying to have an image remain fixed on one side, as the text next to it scrolls until reaching the end. At that point, the image and text will no longer remain fixed, and you can continue scrolling through the page. 

Anyone know how to do this with CSS? Happy to clarify if this is confusing. 

Also, I've done some research, and I'm aware that part of this would involve identifying CSS block IDs to target them, as per this article: https://forum.squarespace.com/topic/11936-can-i-add-css-to-one-text-block-but-not-others-within-a-page/

Thank you!!

Link to comment
  • Replies 3
  • Created
  • Last Reply
5 hours ago, Ariana66 said:

Hi! I am trying to mimic this webpage's ability to have a static element remain fixed alongside a scrolling element. Essentially, I am trying to have an image remain fixed on one side, as the text next to it scrolls until reaching the end. At that point, the image and text will no longer remain fixed, and you can continue scrolling through the page. 

Anyone know how to do this with CSS? Happy to clarify if this is confusing. 

Also, I've done some research, and I'm aware that part of this would involve identifying CSS block IDs to target them, as per this article: https://forum.squarespace.com/topic/11936-can-i-add-css-to-one-text-block-but-not-others-within-a-page/

Thank you!!

Thanks to creedon, I can see the url you posted, this can be achieved with position sticky, what is your site url

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

@bangank36 Okay cool, thank you!

The site we're building is currently under construction, on trial, so it's unable to be public. I changed it to password protected, so hopefully with the password you can view it. The link to the page is: https://buffalo-chinchilla-xpte.squarespace.com/the-godfather-notebook -- password: reganarts

Let me know if that doesn't work!

Specifically on this page, we're trying to make it so we can add more text next to the image of the book & have it scroll. 

And thank you @creedon!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.