Jump to content

Customizing rollover states on menu

Recommended Posts

Posted

Hello,

Apologies if this is something basic but I'm looking to have my color rollover state stay. Right now with my current code, it's just changing with the mouse rollover but would love for the color to stay.

Can you help?

This is my current code:

/* Nav item color */
.header-nav-item a {
    color: #ffffff !important;
    transition-duration: 0.4s;
}
/* Nav item hover color */
.header-nav-item a:hover {
    color: green !important;
    transition-duration: 0.4s;
}
/* Nav item active color */
.header-nav-item--active a {
    color: green !important;
}
 

rollover_state.jpg

  • Replies 4
  • Views 768
  • Created
  • Last Reply
Posted
On 9/30/2021 at 12:06 AM, markserfx said:

Hello,

Apologies if this is something basic but I'm looking to have my color rollover state stay. Right now with my current code, it's just changing with the mouse rollover but would love for the color to stay.

Can you help?

This is my current code:

/* Nav item color */
.header-nav-item a {
    color: #ffffff !important;
    transition-duration: 0.4s;
}
/* Nav item hover color */
.header-nav-item a:hover {
    color: green !important;
    transition-duration: 0.4s;
}
/* Nav item active color */
.header-nav-item--active a {
    color: green !important;
}
 

rollover_state.jpg

Can you share your site with the Protected Password?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.