Jump to content

Adding hover effect to the header menu squarespace 7.1 site

Go to solution Solved by ErinFitzsimmons,

Recommended Posts

HI,

I am trying to add a hover effect to the header menu in my squarespace 7.1 site.  However nothing is happening when I apply it. I think the code is possibly for 7.0 but I don't know how to change it. Could anyone help?

/*BACKGROUND COLOR*/
.Header-nav-item {
  padding: 8px !important;
  border-radius: 0px;
  transition: background .5s, color .5s;
}
.Header-nav-item:hover {
  background: 00263e;
  color: white !important;
}

Thanks

 

Rachel

Link to comment
  • Solution

Hi Rachel!

A few tweaks to make it work from just looking at the code is to change the class and make sure you have a # in front of your hex code so like this:

.header-nav-item a {
  padding: 8px !important;
  border-radius: 0px;
  transition: background .5s, color .5s;
}
.header-nav-item a:hover {
  background: #00263e;
  color: white !important;
}

 

Link to comment
  • 11 months later...

Thanks the world for kind people helping others. Looking to add some flare to a site navbar and this looks to do that. Thanks to all and the magical google search. 🙏

Creative Think and Do-er. Mostly print and packaging, but thanks to SP, slowly becoming a web design master of none. ;)

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.