0

I have this page:

link

If you click on "products", will open a submenu. I want to add a hover effect to this submenu .

I tried this code but do not understand why not go? I missed something?

.sub-menu li:hover{color:red'}

It certainly is probably something simple but I can't realize where is the problem.

You can help me solve this problem?

Thanks in advance!

1
  • Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. See How to create a Minimal, Complete, and Verifiable example Commented Jun 16, 2015 at 11:04

1 Answer 1

1

The color of the submenu items is controlled by

#menu-main-menu .sub-menu li a {
    color: #ddd;
}

so you would need

#menu-main-menu .sub-menu li a:hover {
    color: red; /* or whatever color you wish */
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.