Why hover effect applied to different selector?
-
If you go to https://rosabosma.com (in mobile view), click on the menu, then hover ‘Work With Me’, and then the submenu items ‘Policies & Procedures’ or ‘FAQ’, you will see an arrow next to ‘FAQ’. It comes from:
.nav-primary .menu li.menu-item-has-children > a:after { content: ''; display: block; border-style: solid; border-width: 15px 15px 0; border-color: rgba(255, 255, 255, .6) transparent; bottom: 20px; right: 25px; position: absolute; width: 0; z-index: 1; }
I don’t want the submenu items to display this effect on hover, but I can’t find the right selector to achieve that. The menu item ‘Work With Me’ doesn’t display the arrow effect on hover, whereas the submenu items (‘Policies & Procedures’, ‘FAQ’) only display the arrow effect on hover. It’s kind of a reverse effect and I just can’t see why this is happening.
This is the code I used for ‘Work With Me’s hover state, so that nothing is visible:
.nav-primary .menu li.menu-item-has-children > a:hover:after { border-color: transparent; }
Any feedback would be appreciated! Thank you very much.
- The topic ‘Why hover effect applied to different selector?’ is closed to new replies.