Jump to content

Navigation Bar Dropdown Menu alignment

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Hi all,

I would like to align the dropdown menu in my navigation bar so that it's left-justified and aligned to left side of the dropdown folder name.

(Now it's right-justified and aligned to the right side of the dropdown folder name.)

I found other forum discussions about changing the justification but they weren't addressing the same thing I'm trying to do.

https://www.astrologydome.com/

Thanks!

Screenshot 2024-06-19 at 11.03.09 AM.png

Posted

Try this Custom CSS:

.header .header-layout-nav-right .header-nav .header-nav-item--folder .header-nav-folder-content {
    text-align: left;
}
.header-nav-folder-item a {
    text-align: left !important;
}

 

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
5 hours ago, Ziggy said:

Try this Custom CSS:

.header .header-layout-nav-right .header-nav .header-nav-item--folder .header-nav-folder-content {
    text-align: left;
}
.header-nav-folder-item a {
    text-align: left !important;
}

 

Hi @Ziggy, thanks for your reply.

This code doesn't quite achieve what I'm trying to do.

Please see the attached image for where I would like the dropdown menu to be.

Thanks!

Screenshot 2024-06-19 at 8.50.33 PM.png

  • Solution
Posted
2 hours ago, Arjuna said:

Please see the attached image for where I would like the dropdown menu to be.

Add this as well:

.header .header-layout-nav-right .header-nav .header-nav-item--folder .header-nav-folder-content {
    right: auto;
    left: -1em;
}

 

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!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted
8 hours ago, Ziggy said:

Add this as well:

.header .header-layout-nav-right .header-nav .header-nav-item--folder .header-nav-folder-content {
    right: auto;
    left: -1em;
}

 

This worked! Thank you, @Ziggy!

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.