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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.