Chris3939 Posted April 26 Share Posted April 26 Hello Iam trying to change the weight of a font (with available weights) by value on roll over on a menu with drop downs in SS 7.1 I have achieved rollover change with following code when code value is bold, but not when the value is a weight ie 400 etc .header-nav a:hover{font-weight:200;/*Default font weight*/ } .header-nav a:hover{font-weight:400;/*Font weight on hover*/ } Also with transition to bold there is a position shift which Iam unsure is enevitable but with a smaller weight increase would be less noticable Any help or advice much appreciated Thank you Link to comment
Solution Ziggy Posted April 26 Solution Share Posted April 26 You have the hover state set twice: Try this code instead: // Default font weight .header-nav a { font-weight:200; } // Font weight on hover .header-nav a:hover { font-weight:400; } tuanphan 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Chris3939 Posted May 11 Author Share Posted May 11 Hello , Apologies for slow response but i dod not see your answer. Thank you for your code corection , much appreciated Chris Ziggy 1 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