I am trying to affect one div by hovering another, and I have checked many of these questions that has already been answered here on Stackoverflow, this one and this one for example, and I have succeed to do it one way, where #a affects #b, but I am trying to let #b affect #a too - so the other way around, and none of the methods seem to have worked...
This is what worked ;
.plane1:hover ~ .plane2 {
opacity: 0.2;
transform: scale(0.9);
}
But all these didnt work;
#plane2:hover #plane1 { background-color: yellow; }
#plane2:hover + #plane1 { background-color: yellow; }
#plane2:hover > #plane1 { background-color: yellow; }
.plane2:hover #.plane1 { background-color: yellow; }
.plane2:hover + .plane1 { background-color: yellow; }
.plane2:hover > .plane1 { background-color: yellow; }
so any way I try to do this, it does not really seem to work. (yes, also tried with a ~
)
Edit; My HTML
<div id="plane1" class="plane1 col-md-6 left scale-1 trans-6 opacity-7 hover-opacity">
<img src="img/specs.jpg" class="img-thumbnail center" width="250" height="250" />
<h4 class="center">That plane</h3>
</div>
<div id="plane2" class="plane2 col-md-6 left scale-1 trans-6 opacity-7 hover-opacity">
<img src="img/specs.jpg" class="img-thumbnail center" width="250" height="250" />
<h4 class="center">That other plane</h3>
</div>
GIF of what I am trying to accomplish here; http://i.imgur.com/s7atNDr.gif (too big to upload)