67Chevy Posted February 16 Share Posted February 16 Hello, I'd like to add a 1px line above the footer on each page but limit the line width of the line so it aligns with the margins on the header. Any guidance is appreciated. https://emilytherapy.squarespace.com/ password: branches Link to comment
tuanphan Posted February 18 Share Posted February 18 Add this to Website > Website Tools > Custom CSS footer.sections:before { content: ""; display: block; height: 2px; width: 90%; background-color: #f1f; margin: 0 auto; } 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
67Chevy Posted March 4 Author Share Posted March 4 @tuanphan thanks this works! possible to hide the line on the homepage only? Link to comment
melody495 Posted March 4 Share Posted March 4 The password to your website is incorrect. Instead of code, you can add a line block, if you drag this to span the width of your grid, this will then resize dynamically to your site margins. To hide that block on your homepage, you can add this to your Custom CSS .homepage #block_id { display: none; } -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Nerd e: melody@melodylee.tech 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you) Link to comment
67Chevy Posted March 4 Author Share Posted March 4 Oops. New password: artandscience Thanks @melody495 Link to comment
tuanphan Posted March 8 Share Posted March 8 On 3/5/2024 at 1:26 AM, 67Chevy said: @tuanphan thanks this works! possible to hide the line on the homepage only? Use this CSS code body.homepage footer.sections:before { display: none !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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment