I would like to hide bottom and top elements when hovering the center element on this sample :
<div id="tc">
<span id="ct">top</span>
<div id="pc">
<span id="st"></span>
<span id="tp">center</span>
</div>
<span id="tt">bottom</span>
</div>
I have no problem to hide the bottom element with :
#pc:hover ~ #tt { display: none!important; }
I expect to accomplish the same for the top element with :
#ct + #pc:hover { display: none!important; }
But it doesn't work and even break my first instruction.
What am I doing wrong ?