3 divs -- two are changed by one hover css -


i have 3 divs

in order 1 - 2 - 3

i want change background of 1 & 3 when hover on 2 (using css)

so far div 3 change

use classes style them on hover in css. example:

<div class="one"> first </div> <div class="two"> second </div> <div class="three"> third </div>    .one:hover, .three:hover {  background: pink;   } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -