Jump to content

Active Underline Whole Folder

Recommended Posts

Dear community

I have added the following CSS code to underline the active pages on my page.

.main-nav ul li.active-link a, .main-nav ul li.active-link a:active {
     text-decoration: underline !important;
  } .main-nav a:hover {
     text-decoration: underline !important;
  }

Now the problem is that the whole navigation folder gets underlined, but I only want the actual site.

How can I do that?

Somehow excluding the other pages in the folder?

Here's my page:

pascalreinmann.com

Thanks for you help!

Bildschirmfoto 2020-01-20 um 12.52.16.png

Link to comment
  • Replies 5
  • Created
  • Last Reply

remove your code, and use this

.main-nav ul li.active-link>a, .main-nav ul li.active-link a:active {
    text-decoration: underline !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

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.