Ariana66 Posted November 11, 2020 Share Posted November 11, 2020 (edited) 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!! Edited November 11, 2020 by Ariana66 fixing broken link 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 >. Ariana66 1 Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support! 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 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, 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
Create an account or sign in to comment
You need to be a member in order to leave a comment