Jump to content

Align navigation title with dropdown folder

Recommended Posts

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! 

Edited by JChapman
Adding extra info
Link to comment
  • 4 months later...
On 6/4/2020 at 4:53 AM, markjjeffries said:

Hi Tuanphan,

I also need help with this.

Many thanks,

Mark

If you share link to your site, we can check easier.

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
  • 2 months later...

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

Link to comment
7 hours ago, RADDesign said:

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

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

 

Add to Home > Design > Custom CSS

.header-nav-folder-content {
    right: auto !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
  • 2 months later...

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

Link to comment
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

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

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

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

 

 

  

Link to comment

Add to Home > Design > Custom CSS

@media screen and (max-width:1024px) {
.header-nav-folder-item a {
    line-height: 25px;
}
}

 

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

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.