No, there's no way to select a "cousin" with pure CSS.
If #header
were after .content
, then you could select .button
from a pseudo-class of .content
-- an "aunt/uncle" -- using the adjacent sibling combinator (+
) like this:
.content:hover + #header .button{/* styles */}
But even then, you're not able to select .button
from a pseudo-class of .main
(the "cousin")