Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google+ button remove free space/margin to the right | align to right

Is there any way to align google plus button to right? It seems that g+ button holds some place in case there were more digits. It would be nice if sulution could be using only css/html - no javascript.

update
It apears that google has changed a little bit api of 1+ button since yesterday, but still it seems impossible to align it to the right.

update 2
Question has been asked on Aug 24 '11. Since then Google+ has changed several times. There's no need to spam answers to this post anymore (repeated, and same answers!). Options you all suggest didn't existed at the time. Check out parameters on google+ documentation webpage: https://developers.google.com/+/plugins/+1button/?hl=pl#plusonetag-parameters

like image 671
seler Avatar asked Aug 24 '11 11:08

seler


1 Answers

Nowadays you just add data-align="right" to your <div>. For example:

<div class="g-plusone" data-align="right" data-size="medium" data-href="http://www.mywebsite.com"></div>

That will keep the contents of the <iframe> aligned to the right.

like image 101
Gavin Avatar answered Nov 10 '22 18:11

Gavin