Jump to content

Underline main nav items when hovering over

Recommended Posts

  • Replies 1
  • Views 381
  • Created
  • Last Reply
Posted

Hi. It looks like you solved with this code?

nav a:hover {
    background-size: 100% .5px !important
}

nav a {
    padding-bottom: 3px;
    overflow: visible !important;
    background-repeat: no-repeat !important;
    background-image: linear-gradient(to right,currentColor 100%,currentColor 0) !important;
    background-size: 0% .5px !important;
    background-position: 0% 100% !important;
    white-space: initial;
    transition: all ease-in-out 500ms !important;
    -ms-transition: all ease-in-out 500ms !important;
    -moz-transition: all ease-in-out 500ms !important;
    -webkit-transition: all ease-in-out 500ms !important
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.