I've been attempting to center the div on the page using Bootstrap 4, however, it's not cooperating. I've tried using the margin:0 auto; float:none
property as well as the d-block mx-auto
class, but neither are working. Below is my HTML code:
<div class="d-block mx-auto col-centered">
<ul id="social_nav" class="clearfix d-block mx-auto">
<li class="footlist"><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li class="footlist"><a href="#" target="_blank"><i class="fa fa-pinterest"></i></a></li>
<li class="footlist"><a href="#" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li class="footlist"><a href="#" target="_blank"><i class="fa fa-youtube"></i></a></li>
</ul>
</div>
This is the CSS code:
.main_footer {
background: linear-gradient(#563d7c,#4d366f);
color: #fff !important;
-webkit-box-shadow: 0 2px 4px -1px rgba(0,0,0,0.06), 0 4px 5px 0 rgba(0,0,0,0.06), 0 1px 10px 0 rgba(0,0,0,0.08);
box-shadow: 0 2px 4px -1px rgba(0,0,0,0.06), 0 4px 5px 0 rgba(0,0,0,0.06), 0 1px 10px 0 rgba(0,0,0,0.08);
padding: 90px 0 130px 0;
width: 100%;
text-align: center;
}
footer #social_nav{
float: none;
list-style: none;
}
.footlist {
color: #fff;
float: left;
}