Jump to content

CSS Broken / Underline Header Nav not working

Recommended Posts

Site URL: https://theoculuscreative.com/

I have tried to add custom CSS to my site on multiple occasions, with the aim of underlining header nav items on hover, without any success.

I already have an underline that appears on the current page, I beleive this is something I added with custom CSS a long time ago but I cannot find any evidence of this on my site which is the source of my confusion, and is what I believe stops any other CSS from working. 

If anyone could shed some light on my problem it'd be greatly appreciated.

https://raccoon-fuchsia-t53m.squarespace.com/config/

Link to comment
On 11/24/2021 at 4:22 PM, mattoverboard_ said:

Site URL: https://theoculuscreative.com/

I have tried to add custom CSS to my site on multiple occasions, with the aim of underlining header nav items on hover, without any success.

I already have an underline that appears on the current page, I beleive this is something I added with custom CSS a long time ago but I cannot find any evidence of this on my site which is the source of my confusion, and is what I believe stops any other CSS from working. 

If anyone could shed some light on my problem it'd be greatly appreciated.

https://raccoon-fuchsia-t53m.squarespace.com/config/

Try in Home > Design > Custom Css

.header-nav-item:hover a {
  background-repeat: repeat-x;
  background-image: linear-gradient(to right,currentColor 100%,currentColor 0);
  background-size: 1px 1px;
  background-position: 0 calc(100% - 0.1em);
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

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

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.