Ok I made hover effect for group of five images-appearing border. But when I'm hovering the image some other two images are moving few pixels downward.
<div class="rel">
<img src="images/4wheel2.jpg" height="85" id="on"/>
<img src="images/4wheel2.jpg" height="85" id="on"/>
<img src="images/4wheel2.jpg" height="85" id="on"/>
<img src="images/4wheel2.jpg" height="85" id="on"/>
<img src="images/4wheel2.jpg" height="85" id="on"/>
</div>
<div class="ar">
<img src="images/arrowc.png"/>
</div>
<div class="at">
<img src="images/arrowc.png"/>
</div>
rel is class of div containing 5 images aligned horizontally; ar and at are classes containing identical arrow images; when I'm hovering the 4wheel2.jpg the arrow images are moving downwards.
The CSS code:
.rel{
margin-left: 24%;
margin-top: 40%;
}
.ar{
margin-top: -50%;
margin-left: 45.5%;
}
.at{
margin-top: -3.2%;
margin-left: 66.5%;
}
#on:hover{
border: 3px solid #2875DE;
}
The hover makes ar and at classes move. Best regards