How to combine :first-child and :hover?
li:first-child:hover
should work. Which browser are you testing with? IE doesn't support last-child
Here is a sample test case.
Chaining :first-child
and :hover
as you do here should work just fine. If you're using IE6, however, only the last pseudo-class in the chain will be recognized.
In other words, you're doing it right.