Ariana66 Posted November 11, 2020 Share Posted November 11, 2020 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
creedon Posted November 11, 2020 Share Posted November 11, 2020 The site URL is < https://www.reganarts.com/books/2016/the-godfather-notebook-special-edition/index.html >. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Beyondspace Posted November 11, 2020 Share Posted November 11, 2020 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, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Ariana66 Posted November 11, 2020 Author Share Posted November 11, 2020 @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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.