sarahhalliday Posted May 24 Share Posted May 24 Hello Community! I'm trying to set the height of the first section of each page of my Squarespace site using CSS, but the code I'm using also affects the footer. Here is the CSS I'm currently using: .page-section:first-child { min-height: clamp(0px, 54.25vw, 100vh) !important; } This code also applies to the footer, which I want to exclude. I've tried several alternative selectors and approaches, but none have worked so far. Is there a way to specifically target only the first content section and exclude the footer from being affected by this CSS rule? Any help or suggestions would be greatly appreciated! Thank you! Site URL: https://offbeat-festival.squarespace.com/ PW: Offbeat Link to comment
sarahhalliday Posted May 24 Author Share Posted May 24 p.s. I have no idea where that posted image came from?!? Link to comment
Solution Ziggy Posted May 24 Solution Share Posted May 24 1 hour ago, sarahhalliday said: Is there a way to specifically target only the first content section and exclude the footer from being affected by this CSS rule? Any help or suggestions would be greatly appreciated! Add #page to target just the page: #page .page-section:first-child { min-height: clamp(0px, 54.25vw, 100vh) !important; } sarahhalliday 1 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! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
sarahhalliday Posted May 24 Author Share Posted May 24 Omg ANGEL! Thank you so much Ziggy, you are a superstar. 🥲 Ziggy 1 Link to comment
Ziggy Posted May 24 Share Posted May 24 1 minute ago, sarahhalliday said: Omg ANGEL! Thank you so much Ziggy, you are a superstar. 🥲 Glad to help, thanks for the like! 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! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) ☕ Did I help? Buy me a coffee? 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