Skip to content

Instantly share code, notes, and snippets.

@nickdavis
Last active May 21, 2017 22:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nickdavis/8cebbeeb13048c2e42e5 to your computer and use it in GitHub Desktop.
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)
/* 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;
}
@digicentral
Copy link

Yes! Thank you!

@seanvandenberg
Copy link

...That was irritating. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment