JavaScript hover effect for outside class

I have a 3 block of image. I want a css in which hover a block A transform block C and B, hovering a block B transform block A and C or hovering a block C transform block A and B You can see a demo of what i want in JSFiddle

<p>Hover over 7 and both 8 and 9 get styled.</p>
<div id="seven" class="box">7</div>
<div id="eight" class="box">8</div>
<div id="nine" class="box">9</div>
#nine:hover ~ #seven,
#seven:hover ~ .box {
    background-color: black;
    color: white;
}
#eight:hover ~ .box {
    background-color: black;
    color: white;
}
#nine:hover ~ .box {
    background-color: black;
    color: white;
}

.box {
    cursor: pointer;
    display: inline-block;
    height: 30px;
    line-height: 30px;
    margin: 5px;
    outline: 1px solid black;
    text-align: center;
    width: 30px;
}
Answer:1

var developers = [ { name: "Joe", age: 23 ,overallLevel: "high"}, { name: "Sue", age: 28 ,overallLevel: "advanced" }, { name: "Jon", age: 32 ,overallLevel: "high" }, { name: "Bob", age:...

var developers = [ { name: "Joe", age: 23 ,overallLevel: "high"}, { name: "Sue", age: 28 ,overallLevel: "advanced" }, { name: "Jon", age: 32 ,overallLevel: "high" }, { name: "Bob", age:...

  1. javascript code count
  2. countdown javascript code
  3. javascript code to count the number of elements in a form
  4. javascript code to count number of visitors
  5. javascript code to count characters in textbox
  6. javascript code to count number of words
  7. javascript code for word count
  8. javascript code for character count
  9. write javascript code to count sum of digits

I have a time/date string that is returned like so: "5/31/2016, 2:23:33 PM". I need only the HH:MM and am/pm, so 2:23 PM I am able to split the date off but not sure how I can remove the colon and ...

I have a time/date string that is returned like so: "5/31/2016, 2:23:33 PM". I need only the HH:MM and am/pm, so 2:23 PM I am able to split the date off but not sure how I can remove the colon and ...

  1. javascript slice time complexity
  2. slice time javascript

I've come to the realization that since promises in ECMAScript 6 allow for synchronous coding of asynchronous functions, for every promise-laden piece of code there's a synchronous corollary. For ...

I've come to the realization that since promises in ECMAScript 6 allow for synchronous coding of asynchronous functions, for every promise-laden piece of code there's a synchronous corollary. For ...

i'm using this JS code https://kolber.github.io/audiojs/docs/ and I was wondering if i can load and skipt to a specific point of the audio track. of if there is any other way to do it using an ...

i'm using this JS code https://kolber.github.io/audiojs/docs/ and I was wondering if i can load and skipt to a specific point of the audio track. of if there is any other way to do it using an ...