CarolineGHC 0 Share Posted November 26, 2020 I've added this code into the Custom CSS: .sub-nav a:active, a:hover { outline: 0; color: #237CA8 !important; } Which has created the desirded effect (a hover state for my nav links) but it's also added the blue hue to all my button hover states. How can I get the Custom CSS to only target my menu nav? (See two images attached) Thank you in advanced! Link to post
0 sscodehelp 0 Share Posted November 29, 2020 Hi! In your code you have correctly targeted the sub nav links in their active state (.sub-nav a:active) but after that you are targeting all links in their hover state (a:hover) hence why the buttons are changing on hover as they are also considered links. Try pasting this piece of code into your Custom CSS so that the sub-nav is targeted both times; //Style active and hover sub nav links .sub-nav a:active, .sub-nav a:hover { outline: 0; color: #237CA8 !important; } Link to post
0 CarolineGHC 0 Author Share Posted November 30, 2020 Hi! Thank you for your help in this. I've pasted in the code you supplied and now none of the links have their hover states. Painful... I know. Please please help... again. Thank you! Link to post
0 CarolineGHC 0 Author Share Posted November 30, 2020 Screenshot attached - my mouse is on a link in the dropdown. Link to post
0 tuanphan 9,599 Share Posted December 5, 2020 Can you share site url? We can give code easier. Email me if you have need any help (free, of course :-D). Answer within 24 hours. How to: Setup password & share url Insert Custom CSS Open Page Header Upload Custom Font Find Block ID, Data Section ID Contact Squarespace Customer Care -- Yup! Link to post
Question
CarolineGHC 0
I've added this code into the Custom CSS:
.sub-nav a:active, a:hover {
outline: 0;
color: #237CA8 !important;
}
Which has created the desirded effect (a hover state for my nav links) but it's also added the blue hue to all my button hover states. How can I get the Custom CSS to only target my menu nav? (See two images attached)
Thank you in advanced!
Link to post
Top Posters For This Question
3
1
1
Popular Days
Nov 30
2
Nov 26
1
Nov 29
1
Dec 5
1
Top Posters For This Question
CarolineGHC 3 posts
sscodehelp 1 post
tuanphan 1 post
Popular Days
Nov 30 2020
2 posts
Nov 26 2020
1 post
Nov 29 2020
1 post
Dec 5 2020
1 post
Posted Images
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment