MatRobi Posted July 15 Share Posted July 15 I want not only to change the background when I put the mouse on it, but also to give the text a different color. thank you in anticipation Link to comment
JessicaM Posted July 15 Share Posted July 15 @MatRobi If you'll post the URL to your site then we can write the exact code. Jessica Miller | Squarespace Website Designer https://www.jessicamiller.work jessica@jessicamiller.work Search the blog and get Squarespace tips to your inbox https://www.jessicamiller.work/blog Want to pick my brain or get help? Book a free 15 minute call. If my post solved your problem, please mark it as the solution - thanks! Link to comment
MatRobi Posted July 15 Author Share Posted July 15 2 hours ago, JessicaM said: @MatRobi If you'll post the URL to your site then we can write the exact code. sure : itsmaze.com Link to comment
JessicaM Posted July 15 Share Posted July 15 (edited) @MatRobi This code will change the color and add a background to any h1 text that is bold. h1 strong:hover { background-color: #000000; color: #ffffff; } Change the 2 hex code colors to whatever you'd like it to be. If you want it to apply to another header, then change h1 to h2 (or whichever header you want it to be). *The font must be bold in order to see the effect. Edited July 15 by JessicaM MatRobi 1 Jessica Miller | Squarespace Website Designer https://www.jessicamiller.work jessica@jessicamiller.work Search the blog and get Squarespace tips to your inbox https://www.jessicamiller.work/blog Want to pick my brain or get help? Book a free 15 minute call. If my post solved your problem, please mark it as the solution - thanks! Link to comment
Widle Posted July 17 Share Posted July 17 (edited) Hello @MatRobi use this code to change the text color on the header website tool > Custom code Quote .header-nav a: hover{ background-color: #fff; color: #000000; } Edited July 17 by LoftyDevsbyWidleStudioLLP Widle - Squarespace Website Design Experts Connect - Connect with Email Website - Visit us Ahmedabad, India 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