2011-12-29, 03:17 AM
I used the My Advertisements plugin to display 468x60 advertisements in the header zone:
I am now trying to center them. Can you explain what is wrong with my approach?
I have wrapped the actual ad code like this:
And I added this to the bottom of my theme's global css file:
Yet the ad is not centered. Anyone have any ideas?
I am now trying to center them. Can you explain what is wrong with my approach?
I have wrapped the actual ad code like this:
<div class="adcenter">*Ad code is here*</div>
And I added this to the bottom of my theme's global css file:
div.adcenter{
width:468px;
margin-left:auto !important;
margin-right:auto !important;
padding-bottom: 10px;
}
Yet the ad is not centered. Anyone have any ideas?