Jump to content

Align navigation title with dropdown folder

Recommended Posts

Posted

Hi

How do you get your navigation link to centrally align with it's drop down menu. 

I would like the text 'Resources' to be centrally aligned with the text/box in the drop down menu.

At the moment the drop down menu is hanging off to the left! 

Thanks!

Capture.JPG

  • Replies 17
  • Views 3.2k
  • Created
  • Last Reply
Posted

The problem is that it's not live yet! It's built in Squarespace 7.1. 

I used: 

.header-nav-folder-item {
    text-align: center;
}

to align the drop down menu text with the box, but struggling to make it all centrally align to the folder title! 

  • 4 months later...
  • 2 months later...
Posted

Hi @tuanphan I'm also needing a hand with this.

https://emu-leopard-zg7s.squarespace.com/home
PW: JM2020!

I'm trying to align the drop down text to the left hand side, so that it all sits in line with the "Our Services" text in the global nav. See screenshot attached for reference... I'm wanting to align all text where that guide is. Is this possible?!?

Code I've used for the drop down nav here is:

//Stylized Folder Dropdown Menu
@linkBGColor: #2A6BA7;
@linkTextColor: #fff;
.header-nav .header-nav-item--folder .header-nav-folder-content {
  padding: 0;
  .header-nav-folder-item {
    padding: .3em 1em;
  }
  .header-nav-folder-item:hover {
    background: @linkBGColor;
    a {
      color: @linkTextColor;
    }
  }
}

Thanks so much for your help! Seriously appreciated!

RAD.

Screen-Shot-2020-09-03-at-10.48.20-am.jpg

  • 2 months later...
Posted

Hello @tuanphan! I could also use some support for my dropdown menu. My site is live: https://www.greenr-cleanr.com/

I would like both the dropdown menu box and the texts inside the box to be left aligned. After I added the codes you provided above, I got the dropdown menu (text box) to align left with the tab Services, but the texts inside the menu are still aligned to the right. 

Current code set: 

//Stylized Folder Dropdown Menu
@linkBGColor: #78C144;
@linkTextColor: #fff;
.header-nav .header-nav-item--folder .header-nav-folder-content {
  padding: 0;
  .header-nav-folder-item {
    padding: .5em 1em;
  }
  .header-nav-folder-item:hover {
    background: @linkBGColor;
    a {
      color: @linkTextColor;
    }
  }
}

.header-nav-folder-content {
    right: auto !important;
}

 

 

Thank you! 

Nicole

Screen Shot 2020-11-18 at 4.41.34 PM.png

Posted
15 minutes ago, creativenap said:

Hello @tuanphan! I could also use some support for my dropdown menu. My site is live: https://www.greenr-cleanr.com/

I would like both the dropdown menu box and the texts inside the box to be left aligned. After I added the codes you provided above, I got the dropdown menu (text box) to align left with the tab Services, but the texts inside the menu are still aligned to the right. 

Current code set: 

//Stylized Folder Dropdown Menu
@linkBGColor: #78C144;
@linkTextColor: #fff;
.header-nav .header-nav-item--folder .header-nav-folder-content {
  padding: 0;
  .header-nav-folder-item {
    padding: .5em 1em;
  }
  .header-nav-folder-item:hover {
    background: @linkBGColor;
    a {
      color: @linkTextColor;
    }
  }
}

.header-nav-folder-content {
    right: auto !important;
}

 

 

Thank you! 

Nicole

Add to Home > Design > Custom CSS

/* Align left dropdown */
.header-nav-folder-content {
    text-align: left !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!)

Posted

@tuanphan The code for alignment worked beautifully. Thank you so much! 

And thanks for catching the icon issue. I've just fixed it. However, I came across another issue I'm noticing on my iPad: the texts in the navigation menu are all mushed together... 

 

IMG_C2EAD7E52B43-1.thumb.jpeg.6768c28fd0ac03ef2875b27f245dd503.jpeg

Posted
4 hours ago, creativenap said:

@tuanphan The code for alignment worked beautifully. Thank you so much! 

And thanks for catching the icon issue. I've just fixed it. However, I came across another issue I'm noticing on my iPad: the texts in the navigation menu are all mushed together... 

 

You can adjust line-height menu item

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

Posted

Ah yes, I just tried adjusting in the menu item and it seems to adjust the line hight between each nav tab only but not the texts within each individual tab/label. As you can see, mobile phone might be able to get away with the snug fitting ling spacing. The iPad view port, on the other hand, is still problematic.

Any other solutions/workarounds or is my only option to shorten the texts for each tab?

IMG_C2EAD7E52B43-1.thumb.jpeg.e07f7015cf301bf7d239783aa80fa31b.jpegIMG_C49FF12FADA8-1.thumb.jpeg.72dfa95cc6b5414d8e6d19fc884e46a6.jpegIMG_E780C0EA90D4-1.thumb.jpeg.4f643c1de353d9699310c75266597b1a.jpeg

 

 

  

Posted
1 hour ago, lysshouse said:

Hey @tuanphan could you help me as well? I was able to center the text but not the folder. The site is www.silvereagleadvisors.com/home and I'm using Brine. 

Add to Home > Design > Custom CSS

.Header-nav-folder * {
    text-align: left;
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.