Jump to content

hover with underline and different color

Recommended Posts

  • 2 weeks later...
On 12/18/2022 at 10:52 PM, gullbekken said:

www.gullbekken.com

Add to Design > Custom CSS

div.header-menu-nav-item--active .header-menu-nav-item-content {
    background-image: none !important;
    border-bottom: 1px solid #F15824;
}

 

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!)

Link to comment

If you want  effect on hover, use this code

div.header-menu-nav-item [href="/gullbekken-records"]:hover {
    background-image: none !important;
    border-bottom: 1px solid #F15824;
    display: inline-block;
    color: red !important;
}

replace red, #f15824 with color what you want

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!)

Link to comment
  • 3 weeks later...
On 1/15/2023 at 7:24 PM, gullbekken said:

Close! Still I need "Gullbekken Records" to have a black underline when not hovering, just like "Gullbekken Studio". And when I am hovering "Gullbekken Records" everything (G Studio and G Records) moves 1 or 2 pixels up?

To confirm your request, you want

  • (Initial) Underline Gullbekken Records, same as Gullbekken Studio

image.thumb.png.1c4157f4cb7e7899701e18a30ba01bc2.png

1-2 pix up, change the code

div.header-menu-nav-item [href="/gullbekken-records"]:hover {
    background-image: none !important;
    border-bottom: 1px solid #F15824;
    display: inline-block;
    color: red !important;
}

to this

div.header-menu-nav-item [href="/gullbekken-records"] {
    border-bottom: 1px solid transparent;
  display: inline-block;
}
div.header-menu-nav-item [href="/gullbekken-records"]:hover {
    background-image: none !important;
    border-bottom: 1px solid #F15824;
    color: red !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!)

Link to comment
On 1/19/2023 at 11:28 PM, gullbekken said:

Great! Only thing missing now is that "Gullbekken Records" also has a black underline when not hovering. Just like "Gullbekken Studio" above (see attachment).

Screenshot 2023-01-19 at 17.26.32.png

You mean you need both has underline before hover?

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!)

Link to comment
On 1/27/2023 at 12:31 AM, gullbekken said:

Exactly : )

Don't remove any code in your current code. Add this to Design > Custom CSS

.header-menu-nav-item-content {
    background-image: linear-gradient(currentColor,currentColor);
    background-repeat: repeat-x;
    background-size: 1px 1px;
    background-position: 0 100%;
}

 

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!)

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.