Jump to content

Centering side bar navigation fonts

Go to solution Solved by sanonyme23,

Recommended Posts

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
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 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

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
  • 1 month later...

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 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

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.

Screen Shot 2023-11-23 at 5.29.33 PM.png

Link to comment
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 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

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 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment
  • Solution

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,

 

Link to comment

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 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

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 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.