Hi there. I have dropped this code in, and the ad has still not centered in the column? Is there something else I can try?
I want to center the ads within my sidebar. How do I do that?
To center your ads, you can use the following CSS:
.adplugg-tag img {
margin: 0 auto 1em auto;
}
If you aren't familiar with css, this says to put a 1 character bottom margin and automatically calculate an even (centered) left and right margin on each of your ads. You can change the 1em to 2em for more space or 0.5em etc. for less.
For it to work, you add the above CSS to your site's stylesheet. If you are using WordPress, you can do the following to modify your stylesheet:
EDIT 2015-12-02: We have also had success with certain themes using this css:
.adplugg-ad {
display: table;
margin: 0 auto 1em auto;
}
EDIT 2016-03-24: We have also had success with certain themes using this very simple css:
.adplugg-tag {
text-align: center;
}