How to center ADDTHIS

I get the ADDTHIS to display on my page, but it is all the way to the left. How do I center it?

<div id="img-title"><?php printAddThis() ; ?></div>

Comments

  • acrylian Administrator, Developer
    CSS? Might be a bit complicated as that loads its own stuff via CSS that possibly overrides.
  • Not sure of your theme exactly, not that it specifically matters, but in a full width div you can add another div in your css, auto margins, with a defined width to center it to your needs, here is an example:

    #img-title
    {
    margin: 0 auto;
    width: 440px;
    }
  • Thanks for the reply.

    I got it working with this

    <div id="img-title"><?php printAddThis() ; ?></div>
    <style>
    div.addthis_toolbox {
    width: 140px;
    margin: 0 auto;
    }
    </style>
  • acrylian Administrator, Developer
    Ok, if that centering was the whole problem… You hopefully did not put it that way into your theme as that would be invalid html. `` is only allowed within the `` element.
Sign In or Register to comment.