Inkdave Posted May 8 Posted May 8 Hi All In the process of building out a homepage and I'm struggling with something I think should be pretty straight forward. I want to be able to control padding of each section on mobile. I've tried various found code and pasted into css but clearly doing something wrong... So the first section I would like to adjust is labelled: section[data-section-id="65b90c8f6fb984655e213dbe"] Second section is section[data-section-id="66340409d7dea276bd80b731"] I've attached pics to show to show spacing I'm trying to adjust. Any help would be greatly appreciated. Thanks
Ziggy Posted May 8 Posted May 8 Can you share your website URL? Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
Solution Ziggy Posted May 9 Solution Posted May 9 The section sizes S M L come with different inbuilt padding linked to the screen width, but you can control it in CSS like this: section[data-section-id="65b90c8f6fb984655e213dbe"] { .content-wrapper { margin-top:42px; margin-bottom:42px; } } Or you can target just mobile like this: @media only screen and (max-width:767px) { section[data-section-id="65b90c8f6fb984655e213dbe"] { .content-wrapper { margin-top:42px; margin-bottom:42px; } } } Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
Ziggy Posted May 9 Posted May 9 1 hour ago, Inkdave said: All sorted. Many thanks for the lesson Happy to help Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment