ZenphotoCMS Forum
How to center ADDTHIS - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: How to center ADDTHIS (/thread-11463.html)



How to center ADDTHIS - fdnyfish - 2013-11-08

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




How to center ADDTHIS - acrylian - 2013-11-08

CSS? Might be a bit complicated as that loads its own stuff via CSS that possibly overrides.




How to center ADDTHIS - Papyrus - 2013-11-08

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;
}




How to center ADDTHIS - fdnyfish - 2013-11-08

Thanks for the reply.

I got it working with this

div.addthis_toolbox {
width: 140px;
margin: 0 auto;
}




How to center ADDTHIS - acrylian - 2013-11-08

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.