EquationCampaign Posted September 20 Share Posted September 20 (edited) Hi! I am trying to get a commonly-asked-for layout with text block sticking to the page while a summary block flows on the side. I've tried to read other forum posts about this but haven't gotten it to work. Under the What We Do section, I want that text block to stick to the page while the summary block to the right scrolls. Would love any help the community can provide! Thanks! (this page is a WIP, excuse the weird formatting in the section above 🙂) Link: https://climatelegaldefense.org/what-we-do PW: SummaryBlockHelp Edited September 20 by EquationCampaign Link to comment
Ziggy Posted September 21 Share Posted September 21 Try this Custom CSS: @media only screen and (min-width: 768px) { .fe-block-yui_3_17_2_1_1695094653572_95449 { position: sticky; top: 40px; } } EquationCampaign 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
EquationCampaign Posted September 21 Author Share Posted September 21 @Ziggy THANK YOU!! I swear I was trying that😅 Why do you have to use the "fe" in the block ID? Also, if I want it to continue scrolling a bit before the end of the next section to give it some breathing room, how would I achieve this? Link to comment
Ziggy Posted September 21 Share Posted September 21 Try adding this to the previous code: padding-bottom: 80px; The difference between the .fe-block-id and .block-id is just where they are in the HTML hierarchy. The .fe-block-id is the one that deals with the position in the FE grid, and the .block-id sits within that, so if you want to deal with position then you need the .fe-block-id. EquationCampaign 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
EquationCampaign Posted September 21 Author Share Posted September 21 @Ziggy That worked great, thank you! Though I found I had to swap the block ID for this: block-0db0b4396fcc9ed52cbd. Not sure why. And thank you for the explanation! Ziggy 1 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