Jump to content

Menu nav not distrubuted evenly, how to fix this?

Recommended Posts

  • Replies 7
  • Views 222
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

2 hours ago, websitedesigner said:

I don't know what went wrong here because I'm not code savvy. Thanks in advance!!!

What code have you added?

I can see the problem seems to be the fixed width of the navigation items caused by this CSS:

header nav a {
    width: 30px;
}

This fixed-width means that gap between the navigation text is effected by the length of the text rather than a fixed gap between the items.

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) 

 Did I help? Buy me a coffee?

Link to comment
21 minutes ago, Ziggy said:

What code have you added?

I can see the problem seems to be the fixed width of the navigation items caused by this CSS:

header nav a {
    width: 30px;
}

This fixed-width means that gap between the navigation text is effected by the length of the text rather than a fixed gap between the items.

Ah yes it seems so! I put that line of code in because I have a hover effect, but I didn't like how the headers get pushed a few pixels to the right when I hover on an item. What's a better solution?

Link to comment
40 minutes ago, websitedesigner said:

Ah yes it seems so! I put that line of code in because I have a hover effect, but I didn't like how the headers get pushed a few pixels to the right when I hover on an item. What's a better solution?

Understandable! I don't think there's a good way to have a hover effect that affects the text width (with bold and italics) without getting that shift.

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) 

 Did I help? Buy me a coffee?

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.