Looking for assistance with centering a block of social icons on my website when viewed on a mobile browser. Here is the HTML:
<div id="header-tel-no">Tel: 123456789</div>
<div id="social-buttons-header">
<p><a class="social-button sb-linkedin" href="http://www.linkedin.com/sample" target="_blank">Linkedin</a></p>
<p><a class="social-button sb-twitter" href="https://twitter.com/sample" target="_blank">Twitter</a></p>
<p><a class="social-button sb-facebook" href="https://www.facebook.com/sample" target="_blank">Facebook</a></p>
<p><a class="social-button sb-email" href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="51383f373e1122303c213d347f323e7f243a">[email protected]</a>">Email</a></p>
</div>
The CSS being used is as follows:
#social-buttons-header{
display: block;
width: 100%;
margin-left: auto;
margin-right: auto;
}
.social-button{
width: 30px;
height: 30px;
text-indent: -999em;
display: inline-block;
background-repeat: no-repeat;
background-position: center center;
margin-right: 2px;
text-decoration: none;
border: 1px solid #FFFFFF;
}
a.social-button:hover,
.social-button a:hover,
a.social-button:hover:after,
.social-button a:hover:after {
text-decoration: none;
border: 1px solid #FF9933;
}
a.social-button.sb-facebook,
.social-button a.sb-facebook {
background: transparent url(images/facebook.png) no-repeat;
}
a.social-button.sb-twitter,
.social-button a.sb-twitter {
background: transparent url(images/twitter.png) no-repeat;
}
a.social-button.sb-linkedin,
.social-button a.sb-linkedin {
background: transparent url(images/linkedin.png) no-repeat;
}
a.social-button.sb-email,
.social-button a.sb-email {
background: transparent url(images/outlook.png) no-repeat;
}
The issue lies in the alignment of the social icons:
.................[x][x][x][x]
I would like them to be displayed as such:
........[x][x][x][x] .........
If anyone has suggestions on how to achieve this, it would be greatly appreciated. Thank you.