For new Facebook share button I suggest:
.social iframe,.social>span {
vertical-align: middle;
}
Thank you for this!
JSFiddle demo.
A big thanks.
👍
Thanks! Also @Zarloza made a good edit. Thank you both
Thanks! Still working!
Doesn't work anymore :(
thanks. working
Is it me or Twitter button doesn't show up at all?
@llahnoraa same here. Something's happening with twitter's button.
@asantos
@llahnoraa
@mayaibuki
To fix twitter button issue copy script below and paste it in the header section of your website in between script /script Tags
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
how would the new facebook button be incorporated?
For people having problems in the newer versions, just change the specificity ".social > span {"
Thank you very much! You save my day!
For ppl who have issue with new version facebook like/share button, try this
/* This gets Facebook to fall into place */
.social iframe {
vertical-align: bottom;
}
Guys, if you meet issues in 2016, try this
<style>
/* 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;
}
</style>
<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>
This is so awesome, and saves a lot of inspect-element time. Thanks so much for sharing this!