DesignPearl Posted October 16, 2023 Posted October 16, 2023 I can't figure out why my h2 links won't change color when I hover over them. 😤 I inserted this code: h2 a:hover { color: #F9CA92 !important; } Is it because I also used this code to remove the underline and it's overriding it? a { text-decoration: none !important; }
mandeep Posted October 16, 2023 Posted October 16, 2023 Share site url pls.. some time class add under H2 tag. then not working. Mandeep Rajasthani Squarespace Website Designer Contact me: mandeeprajasthan@gmail.com
DesignPearl Posted October 16, 2023 Author Posted October 16, 2023 https://www.beautifulyoutanning.com/
DesignPearl Posted October 17, 2023 Author Posted October 17, 2023 (edited) No idea why I can't get this code to apply to these links - Body Treatments, Morpheus8, etc... I have used this code, which works on other links but not these. ☹️ #page a:hover { color: #F9CA92!important; } website: www.beautifulyoutanning.com @tuanphan can you please help! 🙏 Edited October 18, 2023 by DesignPearl
Solution tuanphan Posted October 19, 2023 Solution Posted October 19, 2023 On 10/17/2023 at 2:23 PM, DesignPearl said: No idea why I can't get this code to apply to these links - Body Treatments, Morpheus8, etc... I have used this code, which works on other links but not these. ☹️ #page a:hover { color: #F9CA92!important; } website: www.beautifulyoutanning.com @tuanphan can you please help! 🙏 Use this code #page a:hover, #page a:hover * { color: #F9CA92!important; } DesignPearl 1 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!)
DesignPearl Posted October 19, 2023 Author Posted October 19, 2023 (edited) On 10/17/2023 at 12:23 AM, DesignPearl said: No idea why I can't get this code to apply to these links - Body Treatments, Morpheus8, etc... I have used this code, which works on other links but not these. ☹️ #page a:hover { color: #F9CA92!important; } website: www.beautifulyoutanning.com Thank you!! Curious, what does adding "#page" twice and a "*" do? Edited October 19, 2023 by DesignPearl
tuanphan Posted October 21, 2023 Posted October 21, 2023 (edited) On 10/20/2023 at 4:33 AM, DesignPearl said: Thank you!! Curious, what does adding "#page" twice and a "*" do? #page a target all links #page a * target all links + all child element inside links (a) tag Edited October 21, 2023 by tuanphan DesignPearl 1 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!)
DesignPearl Posted October 26, 2023 Author Posted October 26, 2023 @tuanphan is there a way to make it so that my button text doesn't also change to this color? I want button text color to turn black (not orange) on hover.
tuanphan Posted October 29, 2023 Posted October 29, 2023 On 10/27/2023 at 12:49 AM, DesignPearl said: @tuanphan is there a way to make it so that my button text doesn't also change to this color? I want button text color to turn black (not orange) on hover. To exclude button, change to this #page a:not([class*="button"]):hover,#page a:not([class*="button"]):hover * { color: #f9ca92 !important } 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment