Seeking assistance in bordering a div with 4 fa-icons inside. The parent div is named Container
, and as a result, the border is creating excessive padding on the left and right sides horizontally. Attempted nesting bootstrap grids without success. Can anyone provide guidance?
NOTE: Ensure that the padding does not exceed 1px on all sides, and position the div precisely in the center of the page.
https://i.sstatic.net/AbcTx.png HTML:
<div class="container" id="socialIcons">
<div class="row">
<div class="col-md-12">
<a href="https://www.google.com">
<i class="fab fa-linkedin fa-3x "></i>
</a>
<a href="https://www.google.com" target="_blank">
<i class="fab fa-youtube fa-3x"></i>
</a>
<a href="https://www.google.com">
<i class="fab fa-instagram fa-3x"></i>
</a>
<a href="https://www.google.com">
<i class="fab fa-github fa-3x"></i>
</a>
</div>
</div>
</div>
CSS:
#socialIcons {
position: relative;
text-align: center;
margin-top: 300px !important;
border: 1px solid white;
}
UPDATE: Following Jeff's solution, closer to desired outcome but still experiencing automatic padding issue particularly with the GitHub icon on the right side. Any insights on why this might be happening?