Jump to content

Underline on top navigation when on the page

Recommended Posts

9 minutes ago, Kitaken said:

Ah, yes! Thank you. But is it possible to have it work on the starting page, which in my case is "shop"? It doesn't seem to underline when the nav item has a drop down e.g., when "product/price info" is active. 

with dropdown, use

.Header-nav-folder-title--active {
    border-bottom: 1px solid black;
}
.Header-nav-folder-item--active {
    border-bottom: 1px solid black;
}

 

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
  • 2 years later...
On 2/13/2020 at 9:04 AM, tuanphan said:

Add to Home > Design > Custom CSS

.Header-nav-item--active {
    border-bottom: 1px solid black;
}

 

Hi @tuanphan, I have the same question! I've added this code to my custom CSS, but I think it's not working. Did I do anything wrong? The site is sensus.team pw: sensus2022

Thanks so much!

Link to comment
12 hours ago, barbudo said:

Hi @tuanphan, I have the same question! I've added this code to my custom CSS, but I think it's not working. Did I do anything wrong? The site is sensus.team pw: sensus2022

Thanks so much!

The code for SS 7.1. Your site is 7.0, should need to use this code

/* active nav item border */
div.active span {
    border-bottom: 1px solid;
}
.overlay-nav-container div.active a {
    border-bottom: 1px solid;
    display: inline-block;
}

 

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

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.