sanonyme23 Posted October 17 Share Posted October 17 I would very much like to center my navigation links in my side bar in the Supply template, much like you can in the Wells template. I have been told I need to add the code: .menu-block .menu-selector { margin-bottom: 3em text-align: center } into my CSS. When I do it suggests that there is an error in line two. Any suggestions on how to center the navigation links? SQSP purports to be user friendly and that one can adjust code and setting to suit one's desired look, but no having much luck thus far. Many thanks Mike Link to comment
Ziggy Posted October 17 Share Posted October 17 28 minutes ago, sanonyme23 said: into my CSS. When I do it suggests that there is an error in line two. This code is missing semi-colons after each line: .menu-block .menu-selector { margin-bottom: 3em; text-align: center; } 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
sanonyme23 Posted October 21 Author Share Posted October 21 Hi Ziggy, 'Crunch buckets' as no-one says. Thanks for the tip. I will be trying this out shortly (currently travelling, France, Spain and back to Maroc, so it might take a day or two. Very excited to have a possible solution. The first suggest came from a Fès based web guy, but without any mention of semi-coli. Cheers. مايك Link to comment
sanonyme23 Posted November 23 Author Share Posted November 23 sadly still no joy. Added suggested code, but nothing. Perhaps I am not compiling/saving code to properly add it? I had presumed changes to CSS would automatically bee saved and compiles. Hmmmm. Link to comment
Ziggy Posted November 23 Share Posted November 23 Are you trying to make lasting changes to your website via chrome developer tools? 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
sanonyme23 Posted November 23 Author Share Posted November 23 I was attempting to make lasting changes on a copy of my website (safe not sorry) and was trying to use Safari/Firefox's source code pane to add the additional info. I am not intimately aware of how to approach this in Safari let alone Chrome! Should I just be using the Custom CSS window the the SS website tools? If so how to save/compile - I can enter the code but not sure how to get my website to display and save the changes. Cheers. Link to comment
Ziggy Posted November 23 Share Posted November 23 6 minutes ago, sanonyme23 said: Safari/Firefox's source code pane This only allows you inspect a website and test locally, the changes are only visible to you, and as soon as you refresh the page those changes disappear. 8 minutes ago, sanonyme23 said: Should I just be using the Custom CSS window the the SS website tools? If so how to save/compile - I can enter the code but not sure how to get my website to display and save the changes. Yes, you need to use Custom CSS. The changes are live, and 'compiled' once you save. All I have done so far is to bug check the code you initially shared, I don't know if it works because I don't know exactly what you want to achieve or where (website/page URL). 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
sanonyme23 Posted November 26 Author Share Posted November 26 Ziggy, thanks for this further info. What I am hoping to achieve is to have the 'navigation' links in my side bar, across my entire site, display as centered rather than display as left justified as is currently the case. sanonyme.com cheers Link to comment
Ziggy Posted November 27 Share Posted November 27 What it looks like you are asking for is centering by-eye, you're moving the entire navigation to the right to align the first piece of text, you could try using this Custom CSS, and tweaking the value until you're happy with it: #header .navigation, .navigation-secondary { margin-left: 1.5em; } 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
Solution sanonyme23 Posted Monday at 09:19 PM Author Solution Share Posted Monday at 09:19 PM Hi Ziggy, I was only entering by 'eye' to demonstrate what I was after. So yes I was entering by 'eye' on a screenshot to get across my desire. But really what I was after was a code solution, which you have provided, Now I have the code I can go about tweaking the 'em' spacing. Out of curiosity is there a way to centre everything in the navigation bar, or should I just be happy and leave well enough alone? Many thanks, Ziggy 1 Link to comment
Ziggy Posted Monday at 10:57 PM Share Posted Monday at 10:57 PM Do you want to have the text center-aligned? 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
sanonyme23 Posted Tuesday at 08:16 PM Author Share Posted Tuesday at 08:16 PM Hi Ziggy, I would be interested to have the possibility of centre aligned navigation menu text, if only to compare and contrast with the "margin left" option of 'faux' centring with its attendant display of the nested items. Mike Ziggy 1 Link to comment
Ziggy Posted Wednesday at 08:47 AM Share Posted Wednesday at 08:47 AM Try this Custom CSS to center all of the navigation text: .navigation, .navigation-secondary { text-align: center; } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment