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

RATING:


1 Star2 Stars3 Stars4 Stars5 Stars (15 votes, average: 2.27 out of 5)
Loading...





Share this article on Facebook