Does anyone have any tricks to aligning these two buttons on a page? By default the iframe version of the facebook like button appears below the google plus button or vice versa. Are there any css tricks to keep them inline?
This is my current attempt
<div style="float:left;width:100px;">
<!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone>
<!-- Place this tag after the last plusone tag -->
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
<div style="float:left;width:auto;">
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmy_site&layout=button_count&show_faces=false&width=350&action=like&font=lucida+grande&colorscheme=light&height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:30px;" allowTransparency="true"></iframe>
</div>
Use the following google plus render source:
You can adjust margin with your requirement. It was my requirement. By Kuwar Dheeraj Srivastava at One Click Lyrics India
You have to include them in a div wrapper. However, your actual is displaying on the same line for me
your code : http://jsfiddle.net/HbYn3/
Put them in a list - here's what i done (excuse the jsp)
And the css:
Probably parent div width is less than sum of this two iframes width.
Your FB iframe has width 350px. But like button is smaller.