earthwindflowermoon Posted March 19, 2022 Share Posted March 19, 2022 Site URL: https://evolutionofbrilliance.squarespace.com/ Hello, I have created a vertical secondary navigation. I have also added some code which creates an underline on hover on both primary and secondary navigation. My issue is, I only want the underline to appear on the primary navigation, and not the secondary vertical navigation. I need some help with the code please as I can't figure it out! Password is: 123456 Many thanks!!! Link to comment
tuanphan Posted March 21, 2022 Share Posted March 21, 2022 Edit your code to this @media all and (min-width: 700px) { nav.Header-nav--primary a { display:inline-block; float: none; } nav.Header-nav--primary a:hover:after { transform: scalex(1); } nav.Header-nav--primary a:after { display: block; content: ''; border-bottom: solid 2px #fd8f32; padding: .2em; transform: scalex(0); transition: transform 250ms ease-in-out; z-index: 999; } } 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
earthwindflowermoon Posted March 22, 2022 Author Share Posted March 22, 2022 You're amazing Tuan! Thanks again!!!!!! 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