Last active
March 2, 2017 17:42
-
-
Save howtomakeaturn/290057120966900fb21a11a48b4c7e93 to your computer and use it in GitHub Desktop.
Align Facebook Like, Twitter Tweet and Google +1 buttons for 2016
This file contains 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
/* This gets Google to fall into place */ | |
.social { | |
font-size: 1px; | |
} | |
/* This gets Facebook to fall into place */ | |
.social iframe { | |
vertical-align: bottom; | |
} | |
/* Set an optional width for your button wrappers */ | |
.social span { | |
display: inline-block; | |
width: 110px; | |
} | |
/* Adjust the widths individually if you like */ | |
.social .google { | |
width: 75px; | |
} |
This file contains 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
<div class="social"> | |
<span class="Facebook"> | |
<div class="fb-share-button" data-href="[[ URL ]]" data-layout="button_count"></div> | |
</span> | |
<span class="twitter"> | |
<a href="http://twitter.com/share" class="twitter-share-button" data-url="[[ URL ]]">Tweet</a> | |
</span> | |
<span class="google"> | |
<div class="g-plusone" data-size="medium" data-annotation="inline" data-width="300"></div> | |
</span> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍