I had no problems adding a Facebook/Twitter sharing buttons but right now Google+ is driving me crazy, WHEREVER i put this code on my page (using Bootstrap grid), i get a 2-3 pixels on the right creating an horizontal scrollbar:
<div class="g-plus" data-action="share" data-align="left" data-annotation="none"></div>
Plus Script code at the bottom of my page:
<script src="https://apis.google.com/js/platform.js" async defer>{lang: 'fr'}</script>
Any idea how to fix it? I’ve tried to put my div in another div with fixed width and stuff like that but no effect, the script is replacing the div and forcing all css regardless my attempts … i have no idea what is replacing the original div and how to work on it.
I’m a bit lost here, help welcome, thanks.
3
Answers
Try inspect the button and find out which element has the scrollbar and add this CSS on it.
overflow: visible;
I had a similar problem and this worked for me:
Taken from this tutorial: https://www.youtube.com/watch?v=4vYfnZ_XB8M
this solved my problem
G+ button adds an iframe.