charlineca Posted November 9, 2023 Share Posted November 9, 2023 Hi, I am looking for a code that vertically separates the site title and the navigation by placing a 1px vertical line (|) next to the site logo (similar to the screenshot). Can anyone help with this? It should be responsive across different browser sizes, spanning the whole height of the header, so unfortunatly it's not enough to put a .header-title-text::after { content: " | "; } in. My site is https://tetra-accordion-k45t.squarespace.com/, password is squarespace. Link to comment
Solution Ziggy Posted November 9, 2023 Solution Share Posted November 9, 2023 This Custom CSS would add a vertical line: .header-title { border-right: 1px solid white; } But to get the line to span the entire height, you'll also want to add this: .header .header-announcement-bar-wrapper { padding-top: 0vw; padding-bottom: 0vw; } .header-title { padding-top: 1vw; padding-bottom: 1vw; padding-right:2vw; } .tweak-fixed-header:not(.sqs-edit-mode-active):not(.sqs-site-styles-active) .header.shrink .header-announcement-bar-wrapper { padding-top: 0vw; padding-bottom: 0vw; } Let me know if that works. charlineca 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) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
charlineca Posted November 9, 2023 Author Share Posted November 9, 2023 24 minutes ago, Ziggy said: This Custom CSS would add a vertical line: .header-title { border-right: 1px solid white; } But to get the line to span the entire height, you'll also want to add this: .header .header-announcement-bar-wrapper { padding-top: 0vw; padding-bottom: 0vw; } .header-title { padding-top: 1vw; padding-bottom: 1vw; padding-right:2vw; } .tweak-fixed-header:not(.sqs-edit-mode-active):not(.sqs-site-styles-active) .header.shrink .header-announcement-bar-wrapper { padding-top: 0vw; padding-bottom: 0vw; } Let me know if that works. Thanks so much, Ziggy! Ziggy 1 Link to comment
Ziggy Posted November 9, 2023 Share Posted November 9, 2023 43 minutes ago, charlineca said: Thanks so much, Ziggy! Happy to help! Can you mark my post as the solution and give it a like? Thanks! 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) 🖼️ Gallery Lightbox 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