Jump to content

Navigation Bar: Drop-down Menu Alignment

Recommended Posts

Site URL: https://burgundy-carnation-bw5b.squarespace.com/

Hi all!

I am having trouble aligning the text in the drop-down menus in my navigation bar. 

I wanted the drop-down menu text to be left-aligned and used this code to achieve that:

}
.header-nav-folder-item {
    text-align: left !important;

}

HOWEVER, for some reason now that drop-down menu is way off to the left and is totally off center from it's parent folder in the navigation bar. How do I keep the drop-down menu text left aligned but make sure it is sitting DIRECTLY underneath the parent folder?

Thank you in advance!

Screen Shot 2020-05-29 at 1.26.51 PM.png

Link to comment

Try adding to Home > Design > Custom CSS

a.header-nav-folder-title:hover + div, .header-nav-folder-content {
    text-align: center !important;
    position: absolute;
    left: 50% !important;
    right: unset !important;
    -webkit-transform: translatex(-50%);
    -o-transform: translatex(-50%);
    transform: translatex(-50%);
  background: transparent !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 6 months later...
On 12/28/2020 at 7:48 PM, JanaH said:

Site URL: https://www.backspacelaser.com/

Hi, 

I'm having the same problem. 

I've used the code above which works, but for some reason it only works on the first nav link... 

On 'SHOP' the text sits too far too the right.

Screen Shot 2020-12-28 at 11.46.17 pm.png

Screen Shot 2020-12-28 at 11.46.25 pm.png

Hi. Sorry for the delay. I was off some days for the new year, Do you still need help?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
On 2/12/2021 at 6:30 AM, zlinekitchen said:

I'm having a related issue, where the first two menus are left-aligned, then the last menu is right-aligned for some reason?

I'd appreciate any insight! 

image.thumb.png.55c9f10d293bfe5e4ed17aa3a3f07dcd.pngimage.png.1d6a6eb47115989e8288b80e14aa76a1.png

Can you share site url?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 8 months later...
4 hours ago, tuanphan said:

What is your site url?

Hello tuanphan. I was reaching out on another site/question with the same trouble. You just answered there😊. It didn't solve the issue unfortunately. And I thought that a solution similar to that of the nav header and changing position of drop down might do the trick. 

If you'd like to take a look my url is

www.storiesofsmallthings.com 

12345julia

I'd very much appreciate it.  thank you!

Screenshot_20211112-110708_Chrome.jpg

Screenshot_20211112-110655_Chrome.jpg

Link to comment
On 11/12/2021 at 5:19 PM, puslingpaahaender said:

Hello tuanphan. I was reaching out on another site/question with the same trouble. You just answered there😊. It didn't solve the issue unfortunately. And I thought that a solution similar to that of the nav header and changing position of drop down might do the trick. 

If you'd like to take a look my url is

www.storiesofsmallthings.com 

12345julia

I'd very much appreciate it.  thank you!

Screenshot_20211112-110708_Chrome.jpg

Screenshot_20211112-110655_Chrome.jpg

Just answered.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...

a.header-nav-folder-title:hover + div,
.header-nav-folder-content {
    text-align: left !important;
    position: absolute;
    left: 0 !important;
    right: unset !important;
    -webkit-transform: translateX(0) !important;
    -o-transform: translateX(0) !important;
    transform: translateX(0) !important;
    background: transparent !important;
}

 

 

This makes everything sorted and solved for all kind of navigation menus.

Link to comment
On 5/30/2020 at 12:58 AM, Sark said:

Site URL: https://burgundy-carnation-bw5b.squarespace.com/

Hi all!

I am having trouble aligning the text in the drop-down menus in my navigation bar. 

I wanted the drop-down menu text to be left-aligned and used this code to achieve that:

}
.header-nav-folder-item {
    text-align: left !important;

}

HOWEVER, for some reason now that drop-down menu is way off to the left and is totally off center from it's parent folder in the navigation bar. How do I keep the drop-down menu text left aligned but make sure it is sitting DIRECTLY underneath the parent folder?

Thank you in advance!

Screen Shot 2020-05-29 at 1.26.51 PM.png

 

On 12/28/2020 at 6:18 PM, JanaH said:

Site URL: https://www.backspacelaser.com/

Hi, 

I'm having the same problem. 

I've used the code above which works, but for some reason it only works on the first nav link... 

On 'SHOP' the text sits too far too the right.

Screen Shot 2020-12-28 at 11.46.17 pm.png

Screen Shot 2020-12-28 at 11.46.25 pm.png

a.header-nav-folder-title:hover + div,
.header-nav-folder-content {
    text-align: left !important;
    position: absolute;
    left: 0 !important;
    right: unset !important;
    -webkit-transform: translateX(0) !important;
    -o-transform: translateX(0) !important;
    transform: translateX(0) !important;
    background: transparent !important;
}

 

This will help you for sure.

Link to comment
  • 3 months later...

Hello! 

This code was SUPER helpful – thank you!!

Because I'm using a vertical navbar however, the submenu text is overlaying the remaining menu text when it drops down upon hover over or clicking on. Would you be able to help me with code (for SQSP 7.1) to push the rest of the menu down, to allow space for the drop-down menu?

In advance, much much appreciated!

Screen Shot 2024-01-03 at 9.09.18 PM.png

Edited by aevesam
Link to comment
On 1/4/2024 at 9:08 AM, aevesam said:

Hello! 

This code was SUPER helpful – thank you!!

Because I'm using a vertical navbar however, the submenu text is overlaying the remaining menu text when it drops down upon hover over or clicking on. Would you be able to help me with code (for SQSP 7.1) to push the rest of the menu down, to allow space for the drop-down menu?

In advance, much much appreciated!

Screen Shot 2024-01-03 at 9.09.18 PM.png

Can you share site url? We can check this easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 1/4/2024 at 7:38 AM, aevesam said:

Hello! 

This code was SUPER helpful – thank you!!

Because I'm using a vertical navbar however, the submenu text is overlaying the remaining menu text when it drops down upon hover over or clicking on. Would you be able to help me with code (for SQSP 7.1) to push the rest of the menu down, to allow space for the drop-down menu?

In advance, much much appreciated!

Screen Shot 2024-01-03 at 9.09.18 PM.png

Share website url pls?

Hi ! I am Paramjeet kaur Top rated SquareSpace Web Designer and Web Developer with Blogs and SEO For Sites. Working Now As freelancer With lowest Rate. Rate $20 per hour.  Till date, I have created over 70 + websites in squarespace.  Contact Me    Email

Link to comment
  • 5 weeks later...

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.