Jump to content

Custom underline for active nav tab

Recommended Posts

  • Replies 5
  • Views 1.5k
  • Created
  • Last Reply

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.