PartTwoDesign Posted August 1 Share Posted August 1 Hi, I have used this code to add a hamburger menu to the desktop version of my site. /* Hamburger nav on desktop */ .header .header-burger{display:flex} .header-nav, .header-actions {display:none} .header--menu-open .header-menu { opacity: 1; visibility: visible;} .header-menu-nav-item {line-height: 20px!important;} This works great but I have noticed that there is now a strikethrough over the text of whatever page I am currently on. Is there a way to make this an underline rather than a strikethrough? I have also noticed that the hamburger icon has knocked my logo off centre. Is there also a way to fix this? Thank you in advance for any help! Chris Password: parttwo Link to comment
Ziggy Posted August 1 Share Posted August 1 Can you share your website URL? This may be the reason for the underline becoming a strikethrough:.header-menu-nav-item {line-height: 20px!important;} Try changing it to 1.2em from 20px. 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
PartTwoDesign Posted August 1 Author Share Posted August 1 @Ziggy Thanks for the reply! I tried changing it to 1.2em but it didn't seem to work. Would there be anything else you would suggest? Thanks, Chris My URL is https://violin-ruby-pfwe.squarespace.com Password: parttwo Link to comment
Solution Ziggy Posted August 1 Solution Share Posted August 1 Center the title: .header-title-nav-wrapper { margin-left: 47px; } Can you remove the 20px line height property entirely, and use this instead to adjust the spacing between elements: .header-menu-nav-item a { margin: 1vw 4vw; } PartTwoDesign 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
PartTwoDesign Posted August 1 Author Share Posted August 1 Thanks @Ziggy That worked! Thank you for all the help! Chris Ziggy 1 Link to comment
PartTwoDesign Posted August 2 Author Share Posted August 2 Hi, @Ziggy I have just noticed that the code for centring the title logo on desktop has knocked it off centre when viewed on mobile. Is there a way to centre the logo normally on mobile? Thanks again, Chris Link to comment
Ziggy Posted August 2 Share Posted August 2 Try this instead: @media only screen and (min-width:768px) { .header-title-nav-wrapper { margin-left: 47px; } } PartTwoDesign and tuanphan 2 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
PartTwoDesign Posted August 2 Author Share Posted August 2 @Ziggy That worked! Thank you so much! Chris 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