Jump to content

Removing underline from top navigation dropdown

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://mustard-deer-gn4n.squarespace.com/

I'm working on customizing the folder dropdown in my site's navigation bar. I'm trying to remove the orange underline that appears under the sublinks in the dropdown menu. However, I would like the underline to still appear when hovering over those sublinks.

I've tried some custom CSS, but the underline persists on the active sublink, and I'm having trouble getting it just right. Any advice or suggestions would be much appreciated!

Thanks in advance!

Site: https://mustard-deer-gn4n.squarespace.com/
PW: SABA2024

Screen Shot 2024-09-12 at 4.37.39 PM.png

Link to comment
  • Replies 2
  • Views 464
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

Don't remove any code in your current code

Use this to Custom CSS box

span.header-nav-folder-item-content {
    background-image: none !important;
}
div.header-nav-item--active div a {
    border: none !important;
    border-bottom: 3px solid transparent !important;
}
div.header-nav-item--active div.header-nav-folder-item:hover a {
    border-color: #e57138 !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!)

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.