RET Posted June 28, 2023 Share Posted June 28, 2023 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 ErinFitzsimmons Posted June 28, 2023 Solution Share Posted June 28, 2023 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; } tuanphan 1 Link to comment
RET Posted June 28, 2023 Author Share Posted June 28, 2023 Thank you so much! I really appreciate it as new to coding and still trying to figure it all out. ErinFitzsimmons 1 Link to comment
landoishere Posted June 19 Share Posted June 19 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment