nextgap.com

Reviews, Impressions, Tips, DIY and good stuff

nextgap.com header image 2

Addthis share button align center (or else)

March 21st, 2010 · No Comments

Addthis is a nice free service that lets you display a sharing button on your site. Generate the code here, and put it in your footer (or other location of your choice), and you’re all set.

To align the button to the center, simply add a little piece of CSS to the DIV tag. You can define the alignment as relative using % , or as PX if your template is fixed.

Add this piece of code:

style=”padding-left: 40%;

to the DIV tag as the example below shows:

<!– AddThis Button BEGIN –>
<div class=”addthis_toolbox addthis_default_style” style=”padding-left: 40%;>
more code more code more code
more code more code more code
more code more code more code
more code more code more code
<!– AddThis Button END –>

Share

Tags: Computers · Internet


The E-mail request for commenting is only to prevent spam, it will NOT be shown along with the comment and I will not use it to send you E-mails, unless you request to be subscribed to this site.

Share this article on Facebook