Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Is the following CSS syntax valid?
a:first-child:hover { background-color: transparent; }
If so, what is the compatibility as far as browsers? For example, is it compatible in IE8, IE6+, Firefox 4, Chrome, etc.
Combo first-child and :hover is correct(IE6 recognize only last pseudo-class in the chain):
first-child
:hover
div span:first-child:hover { color: red; }
<div> <span>asdasd</span> <span>asdasd</span> <span>asdasd</span> </div>
Add a comment
:first-child
Required, but never shown
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.
Explore related questions
See similar questions with these tags.