In my main element I have ten images wrapped in anchor tags, all of which are contained in a figure element within the main. I've added my border like so:
main img {
width:100px;
height:100px;
float:left;
display: block;
padding:20px 75px 55px;
}
main img:hover {
border-bottom:1px solid #666;
margin-bottom:-1px;
}
This actually works for all the images however, the fourth child (or img) in the first row, the top right image in the stack to be exact , when moused over shows its bottom border but also pushes the entire row of images below it down by 1px. Why is that img such a anarchist, a bit new to this.