Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Child then adjacent selector? Re: Child then adjacent selector?

#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.