I have created the following section as part of a website I'm currently working on.
When the social media icons below the job title are hovered over with the cursor, the CSS is supposed to generate a border around the icons individually, without affecting anything else on this entire section. However, upon the border appearing, the other gray boxes seem to be getting a margin-top
-like effect to them.
This is what's described in the previous paragraph:
What I'm trying to achieve is the same effect as seen in the latter photo, only without the other div's being pushed down. The effect does look nice to some extent, but I would like to know what's causing it and how I would be able to avoid it.
This is the structure of one of those boxes, as an example:
<div class="container">
<div class="row">
<div class="col-span-3 crew-member">
<img src="imgs/avatar1.jpg" alt="" class="img-circle">
<div class="name">John Blue</div>
<div class="job-title">Web & Graphics Designer</div>
<div class="social-icons">
<i class="fa fa-facebook-official"></i>
<i class="fa fa-twitter-square"></i>
<i class="fa fa-instagram"></i>
</div>
</div>
</div>
</div>
And as requested, here is a JSFIDDLE with the hover problem: https://jsfiddle.net/c9zwecha/
Any help would be much appreciated.