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
Post a Comment