I'm struggling to center the font awesome icons both vertically and horizontally within their rounded background. Every time, they end up on the left, top, or bottom.
Is there a way to adjust the positioning of these icons and properly center them?
Below is the code (Extra lines added in CSS since it's in the footer):
.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>