swvarian Posted April 9, 2022 Share Posted April 9, 2022 Site URL: https://harp-algae-smyn.squarespace.com/ Hi. I added this code below in order to have a hover on each button of the navigation bar. This works fine. /* Nav item hover - bold */ .header-nav-item a:hover { color: black !important; font-weight: bold; } However, I do not want the 5th button (Patient Resources) a folder, to turn bold when you hover over it because it is not an actual page (like the Services folder - this is an actual page). Is there a way to never show the bold hover on Patient Resources? Desktop and mobile? Thanks so much for you help! Sherry Link to comment
tuanphan Posted April 10, 2022 Share Posted April 10, 2022 Try this code /* Nav item hover - bold */ .header-nav-item:not(:nth-child(5))>a:hover { color: black !important; font-weight: bold; } 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
swvarian Posted April 11, 2022 Author Share Posted April 11, 2022 14 hours ago, tuanphan said: /* Nav item hover - bold */ .header-nav-item:not(:nth-child(5))>a:hover { color: black !important; font-weight: bold; } This works beautifully on desktop, thank you!! Is there a way to have the bold hover effect excluding the ( :nth-child(5) on mobile as well? Link to comment
tuanphan Posted April 18, 2022 Share Posted April 18, 2022 On 4/11/2022 at 9:21 PM, swvarian said: This works beautifully on desktop, thank you!! Is there a way to have the bold hover effect excluding the ( :nth-child(5) on mobile as well? Try this code /* Nav item hover - bold */ .header-nav-item:not(:nth-child(5))>a:hover, div.container:not(:nth-child(5)) a:hover { color: black !important; font-weight: bold; } 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