I used an image inside an anchor and wrote the css to display a 5px solid cyan border around the image when the image was being hovered but the border is not being displayed fully .
Link of the image I used :-
img {
height: 300px;
width: 300px;
}
a:hover {
border: 5px solid cyan;
}
<a href="#"><img src="1.png"></a>

