Jump to content

Underline Effect Only When Hovering

Recommended Posts

  • Replies 4
  • Views 419
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

18 minutes ago, iamdavehart said:

remove :hover from your rule. 

.header-nav-item a {
    text-decoration: underline;
}

 

Hey, I tried this, but the underline gets removed completely with this code. I want the underline effect to be present at all times.

Link to comment
On 10/5/2021 at 7:36 PM, iamdavehart said:

OK, add !important to it, which tells it to override any other rule that's been set at the same or a more specific scope. like this:

.header-nav-item a {
    text-decoration: underline !important;
}

 

Thanks a lot, this worked 🙂

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.