Jump to content

Underline link on header when user hover over

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Add to Home > Design > Custom CSS

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

 

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
  • 11 months later...
On 7/18/2020 at 11:42 AM, tuanphan said:

Add to Home > Design > Custom CSS

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

 

Dear Tuanphan,

How can I adjust this code so that the underline is closer to the navigation title ?

Link to comment
  • 1 year later...
On 1/26/2023 at 2:03 AM, Janetgrr said:

Is there a way to adjust this so that it's also visible on mobile, and so there's some space between the underline and the text?

Use this

.header-nav-item>a:hover {
    text-decoration: underline;
}
.header-nav-folder-item:hover a {
    text-decoration: underline;
}
.header-menu-nav-item a:hover * {
	border-bottom: 1px solid black;
}

 

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

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.