sarahrab Posted July 16, 2022 Share Posted July 16, 2022 Site URL: https://moreours.squarespace.com/work-copy Hi there! On this page, I’m hoping to have the text box and button stay fixed in place, with the gallery of images scrolling behind it all, until you reach the footer (the text and button should then be able to scroll up when you get to the footer). I know this has to do with sticky and fixed positioning, but my knowledge around that is very limited. I’m using the new Fluid Engine on this page. pw: pearl Link to comment
Beyondspace Posted July 16, 2022 Share Posted July 16, 2022 1 hour ago, sarahrab said: Site URL: https://moreours.squarespace.com/work-copy Hi there! On this page, I’m hoping to have the text box and button stay fixed in place, with the gallery of images scrolling behind it all, until you reach the footer (the text and button should then be able to scroll up when you get to the footer). I know this has to do with sticky and fixed positioning, but my knowledge around that is very limited. I’m using the new Fluid Engine on this page. pw: pearl You can try section[data-section-id="62d1baa89681d775e15dd828"] .fe-block-62d1baa88fc4ddf80b4753d5 { position: sticky; top: 100px; z-index:99; } Hope it helps tuanphan 1 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
sarahrab Posted July 16, 2022 Author Share Posted July 16, 2022 10 hours ago, bangank36 said: You can try section[data-section-id="62d1baa89681d775e15dd828"] .fe-block-62d1baa88fc4ddf80b4753d5 { position: sticky; top: 100px; z-index:99; } Hope it helps @bangank36 Thank you, that does work!! It's all perfect until I get to the footer. At the bottom, the button starts to move on top of the text. How can I maintain the space between the text and the button for the entire time? Link to comment
Beyondspace Posted July 16, 2022 Share Posted July 16, 2022 You can try changing the top value of the button until it meets your requirement. My testing is fine with top: 720px 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
sarahrab Posted July 18, 2022 Author Share Posted July 18, 2022 On 7/16/2022 at 9:12 AM, bangank36 said: You can try changing the top value of the button until it meets your requirement. My testing is fine with top: 720px @bangank36 Hm, that's not working for me. I've changed the top value so that it works perfect throughout the entire scroll, but once I get to the bottom, it overlaps the last line of the text, like the screenshot here. I've tried changing the value up and down, including to 720. Link to comment
tuanphan Posted July 19, 2022 Share Posted July 19, 2022 6 hours ago, sarahrab said: Hm, that's not working for me. I've changed the top value so that it works perfect throughout the entire scroll, but once I get to the bottom, it overlaps the last line of the text, like the screenshot here. I've tried changing the value up and down, including to 720. Try adding grid-row-end to this code section[data-section-id="62d1baa89681d775e15dd828"] .fe-block-62d1baa8d1eb62e0a009f0c3 { position: sticky; top: 230px; z-index: 99; grid-row-end: 16 !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
EssaArissa Posted June 3, 2023 Share Posted June 3, 2023 For my site, the sticky button is there but something is wrong with the z-index. Check out this pagehttps://www.altarealestate.sg/featured-listings This is the CSS code { position: fixed; z-index: 9999; bottom: 3%; right: 3%; width: 65px; height: 65px; } Link to comment
tuanphan Posted June 8, 2023 Share Posted June 8, 2023 On 6/3/2023 at 9:38 PM, EssaArissa said: For my site, the sticky button is there but something is wrong with the z-index. Check out this pagehttps://www.altarealestate.sg/featured-listings This is the CSS code { position: fixed; z-index: 9999; bottom: 3%; right: 3%; width: 65px; height: 65px; } Which button are you referring to? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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