Answer the question
In order to leave comments, you need to log in
How to set hover for li when hover is triggered for a?
Hello guys! Not enough knowledge, Google did not help.
How to hover the li attribute when the hover of the A attribute is triggered?
That is, an example:
#id > ul > li.class:hover {
color:red
}
#id > ul > li.class > a:hover{
color:red
}
Answer the question
In order to leave comments, you need to log in
According to your code, the color is the same, you can just call hover li:
#id > ul > li:hover {
color:red
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question