Take a look at this element structure.
[#parent]
[#childA]
[#childChildA]
[#childChildB]
[#childChildChildA]
[#childB]
[/#parent]
I want to change #childChildChildA
to opacity: 0
; by using the #childA :hover selector. I tried:
#childA:hover > #childChildB > #childChildChildA {
opacity: 0 !important;
}
But this accomplished nothing. How can I modify a deep child element when using a much higher up parent element with pure CSS?
you need to remove the >'s
<div id='a'>
<div id='b'></div>
<div id='c'>
<div id='d'></div>
</div>
</div>
#a:hover #c #d {
opacity: 0 !important;
}
This is an example of it with different id names.