Last active
May 21, 2017 22:49
-
-
Save nickdavis/8cebbeeb13048c2e42e5 to your computer and use it in GitHub Desktop.
Center 'Simple Social Icons' via CSS (useful on responsive designs where the icons are initially left or right aligned and you want them centred on smaller screens)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Place the following at the point you want to center them in your CSS file, e.g. after the 1023 or 768px media query */ | |
.simple-social-icons ul { | |
float: none; | |
text-align: center; | |
} | |
.simple-social-icons ul li { | |
display: inline-block; | |
float: none !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
...That was irritating. Thanks!