Home › Forums › CSS › How to keep only parent menu and clicked anchor link menu active › Reply To: How to keep only parent menu and clicked anchor link menu active
These sub-menus are anchor links to different sections of the same parent page
Your demo does not contain the markup to reflect this.
when i click on the parent menu, all the sub-menus (obviously the anchor link menus) goes active, which is not what i want.
Again, your demo doesn’t illustrate this undesirable behaviour.
We would need to see a working demo of the undesirable behaviour in order to understand the problem. Only then can we offer suggestions to achieve the desirable behaviour…
I want it such that when you click one of the sub-menus, only the parent menu and the clicked sub-menu will stay active