moretrobin Posted June 6, 2023 Share Posted June 6, 2023 Hi, I'm trying to change the color of my section background when hovering each title of my accordion included in this section. Here is the link : https://enodo.squarespace.com/services (password enodo2023) Basically, I would like to the color blue to change to red when hovering over "Droit des affaires" Anyone could help here ? Thank you so much! Robin Link to comment
inside_the_square Posted June 6, 2023 Share Posted June 6, 2023 Hey @moretrobin love this idea - and totally possible with CSS! To change any accordion background to red on a hover, use this code: .accordion-item__click-target:hover{ background:red } Hope that helps and best of luck with your project! 🤓 Creator of InsideTheSquare.co ✨ SQUARESPACE CIRCLE LEADER✨ SQUARESPACE EXPERT ✨ SQUARESPACE EMPLOYEE EDUCATOR ✨ CERTIFIED CUSTOM CODE EXPERT ✨ 🗺️ New to Squarespace? Get your free roadmap: insidethesquare.co/roadmap 🙋♀️ New to CSS? Learn the basics for free: insidethesquare.co/learn ⭐️ Ready to go pro? Get my custom code collection: insidethesquare.co/css Link to comment
moretrobin Posted June 8, 2023 Author Share Posted June 8, 2023 (edited) On 6/6/2023 at 11:23 PM, inside_the_square said: Hey @moretrobin love this idea - and totally possible with CSS! To change any accordion background to red on a hover, use this code: .accordion-item__click-target:hover{ background:red } Hope that helps and best of luck with your project! Thank you so much! actually, I'm trying to change the background of the entire section, not only the background on the accordion. Moreover, I'm trying to have a different color background when hovering each accordion title. Is that doable ? Edited June 8, 2023 by moretrobin Link to comment
tuanphan Posted June 11, 2023 Share Posted June 11, 2023 On 6/8/2023 at 2:41 PM, moretrobin said: Thank you so much! actually, I'm trying to change the background of the entire section, not only the background on the accordion. Moreover, I'm trying to have a different color background when hovering each accordion title. Is that doable ? You mean hover on each accordion item >> change whole section color (red box)? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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