Home › Forums › CSS › Child then adjacent selector? › Re: Child then adjacent selector?
March 4, 2010 at 6:07 am
#71997
Rob MacKay
Participant
Ahhhh yes – of course I see your issue there.
The problem with h2 > a + p { color: #5f5f5f } is that its finding the child a inside the H2 then looking for its p sibling – which isn’t inside the H2.