Jump to content

Custom underline for active nav tab

Recommended Posts

Please send the site url and your drawn image, i will help place it

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Is this good

.header-nav-item:hover a,
.header-nav-item--active a {
  display: inline-block;
  position: relative;
}
.header-nav-item:hover a:after,
.header-nav-item--active a:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 15px;
    left: 0;
    bottom: 0;
    background: url(//content.invisioncic.com/p289038/monthly_2020_11/Underlined.thumb.png.be6b54785e0850b97144cb2ab7b805a6.png);
    background-size: cover;
    background-repeat: no-repeat;
}

image.png.49a1ed4cc5993be105b321dca96db65a.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
31 minutes ago, quag said:

Thank you, thats about right. Is there a way for it to not overlap?

Change value bottom to negative value, so far it 0

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.