html - CSS: How to set hover effect on menu-item when submenu-item is displayed -


Sorry with the title If it does not look bad, then I do not know how to write a title for my issue I can. / P>

So I have a menu bar with some menu items and submenu items:

   

Even what I have done so far.

What do I want to keep the menu item in : hover state if its submenu item is hovering , As if my mouse should be dark <2> menu < submenu or submenu2 > menu 2 . How can I do this with CSS?

I hope that I am clear from my question.

Edit:

Wooo Many Thanks - Every One

It is found: # menu li: hover

  # menu: hover, # menu a: hover, menu & gt;  Add 
  • In a last line of your CSS {}
  • > #Menu Li: To target selectors

    Here's an example updated:


    Comments

    Popular posts from this blog

    Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

    java - How not to audit a join table and related entities using Hibernate Envers? -

    mongodb - CakePHP paginator ignoring order, but only for certain values -