I am trying to move the font awesome icons to the center vertically and horizontally in its rounded background. But every time either it's on the left or on the top or on the bottom.
How to fix those icons and move to the center?
Here is the code (Since it's in the footer I've added extra lines here in CSS):
.page-footer {
background-color:#222222;
padding: 0 40px;
text-align: center;
}
.page-footer a {
font-size:14px;
color:#ffffff;
}
ul.social-buttons {
text-align: center;
justify-content: center;
margin-top:40px;
}
ul.social-buttons li a {
font-size: 35px;
line-height: 50px;
display: block;
width: 70px;
height: 70px;
-webkit-transition: all 0.3s;
transition: all 0.3s;
color: #222222;
border-radius: 100%;
outline: none;
background-color: #ffffff;
border:5px solid #fed136;
}
ul.social-buttons li a:active, ul.social-buttons li a:focus, ul.social-buttons li a:hover {
background-color: #fed136;
}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<div class="col-md-4">
<ul class="list-inline social-buttons">
<li class="list-inline-item">
<a href="#">
<i class=" fab fa-linkedin-in"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="fab fa-google-plus-g"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li class="list-inline-item">
<a href="#">
<i class="fab fa-twitter"></i>
</a>
</li>
</ul>
</div>