Jump to content

Underline on top navigation when on the page

Recommended Posts

  • Replies 6
  • Views 2.6k
  • Created
  • Last Reply

I already have this code, see below (that underlines the link on hover) :

//Header Navigation.Header-nav-item::after { content: ''; background: #BB7939; height: 4px; width: 0%; display: block; margin-top: 3px !important; transition: width 1s;


And when I include the code you gave me, it underlines all of the links at the top. I just want it to underline the link of the current page you are looking at.


Link to comment


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.