centering

josworld Jun 21, 2012 03:43PM EDT

I've just added the horizontal addthis button to the bottom of a web page,
but I am having trouble getting it centered across the bottom.

It seems to default to the left hand side.

I'm certain it is something simple in the coding but not so sure where to go from here.

1 Community Answers

Paul Jun 22, 2012 05:01PM EDT

Centering the AddThis toolbox requires you to determine the minimum width the toolbox (in pixels) can be in order to prevent the buttons from wrapping. Then you can center it by adding this snippet of code to the page, replacing the "242" in this code snippet with that width.

<style>
div.addthis_toolbox {
width: 242px;
margin: 0 auto;
}
</style>

Remember that the value for the width has to be the correct one for your toolbox in order for it to work.


This question is closed to new answers.

Still need help?


General Topics

 

Developers