Member
Member
fdnyfish   2013-11-08, 15:04
#1
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>
Administrator
Administrator
acrylian   2013-11-08, 15:58
#2
CSS? Might be a bit complicated as that loads its own stuff via CSS that possibly overrides.
Member
Member
Papyrus   2013-11-08, 21:45
#3
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;
}
Member
Member
fdnyfish   2013-11-08, 22:30
#4
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>
Administrator
Administrator
acrylian   2013-11-08, 23:14
#5
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. `<style>` is only allowed within the `<head>` element.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.