Jump to content

Active Header Item Background

Recommended Posts

Site URL: https://mackerel-wolverine-cfbm.squarespace.com/

Site: https://mackerel-wolverine-cfbm.squarespace.com/
Password: villa
**The only custom CSS I have on this site is adding in custom fonts and adjusting padding on a specific block so I do not believe it's affecting by inability to do this**

I've seen many forum posts adjusting the underline under behaviour and colour but I am unable to make any of them work with my site. What I am trying to achieve is a thick orange block "underline" under my active navigation item. Whether it be the underline itself that becomes thicker or a background colour that is behind, I don't care I just want to make it work.

This is what I want my header to look like when on an active page:

End Result.png

Instead I am unable to manipulate this header:

Current Header.png

Link to comment
  • Replies 4
  • Views 776
  • Created
  • Last Reply

Add to Home > Design > Custom CSS

/* nav active underline border */
.header-nav-item--active>a, .header-menu-nav-item--active>a, .header-nav-folder-item--active a {
    background-image: none !important;
    border-bottom: 5px solid orange;
}

 

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
  • 7 months later...
On 8/17/2020 at 3:13 AM, tuanphan said:

Add to Home > Design > Custom CSS



/* nav active underline border */
.header-nav-item--active>a, .header-menu-nav-item--active>a, .header-nav-folder-item--active a {
    background-image: none !important;
    border-bottom: 5px solid orange;
}

 

Is there a way to do this when you don't have an active header?  

I'm trying to do this with a Header called About (main navigation), and a non-linked paged, as seen in the attachment. I'm trying to manually underline About, even tho its not the "active header"

Site: https://pomegranate-badger-p3wd.squarespace.com/config/pages

password: space123 

Screen Shot 2021-04-02 at 7.33.03 PM.png

Link to comment
On 4/3/2021 at 9:34 AM, zzlogan said:

Is there a way to do this when you don't have an active header?  

I'm trying to do this with a Header called About (main navigation), and a non-linked paged, as seen in the attachment. I'm trying to manually underline About, even tho its not the "active header"

Site: https://pomegranate-badger-p3wd.squarespace.com/config/pages

password: space123 

Screen Shot 2021-04-02 at 7.33.03 PM.png

Hi. I don't quite understand the question :( Can you expxlain clearly?

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

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.