So I am trying to get the element next to an element that I hover over. So if I have:
<div class="parent">
<div class="thing1"></div>
<input type="text" class="thing2" />
</div>
When you hover over .thing2
I want thing1
to get a border applied to it. Is this possible? Here is what I have so far but it isn't working...
.thing1:hover ~ .thing2 {
border: 1px solid #707070;
}