Title: Ad padding
Last modified: August 21, 2016

---

# Ad padding

 *  Resolved [Bree](https://wordpress.org/support/users/lifesgood/)
 * (@lifesgood)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/ad-padding/)
 * Hello, I am using AdRotate to display text-only ads, in a 2 column x 3 row display,
   giving each white text ad a black background. I need to add padding around the
   text as it originally displays in the top left corner, and have tried this in
   both my theme’s CSS file and the group’s before/after ad settings. It appears
   to work (that is, when I use Chrome’s inspector I can see padding has been added)
   but on the live site, it only appears to add padding to the left. Help much appreciated.
 * [https://wordpress.org/plugins/adrotate/](https://wordpress.org/plugins/adrotate/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/ad-padding/#post-4850557)
 * That is indeed done with CSS usually. You can add it to the theme or use inline
   CSS in the adcode itself.
 * If it works for chrome only, you used the wrong CSS or applied it to the wrong
   element/class.
 *  Thread Starter [Bree](https://wordpress.org/support/users/lifesgood/)
 * (@lifesgood)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/ad-padding/#post-4850575)
 * Thanks so much for your help, I really appreciate it. I should clarify that it
   doesn’t actually work in Chrome, it just *appears* to work when I inspect the
   element in Chrome (ie, I can see the padding has been applied by the green shading,
   but it only looks as though it has been applied to the left of the text on screen).
 * The class I am targeting is .a-8
 * In the dynamic block mode the settings are at:
    Block shape and border: 3 rows
   x 2 columns Advert width and height: 360 x 35 pixels Advert margin: 3 pixels
 * As for CSS I’ve tried:
 * 1) The wrapper code
    Before: <span style=”padding:15px;”> After: </span>
 * (This gives the appearance of left padding only)
 * 2) CSS
    .a-8 { color: white; background: black; padding: 15px; }
 * (This also gives the appearance of left padding only)
 * So, neither of these work. HOWEVER… I have discovered that I can make it appear
   exactly as I want it on screen (temporarily) if I inspect the element in Chrome
   and adjust the CSS in the chrome inspector to read:
 * .a-8 {
    color: white; background: black; width: 338px; height: 15px; padding:
   11px; }
 * But when I then make the settings the same within the plugin or my CSS file, 
   I still end up with ads smaller than I need in height, even with the padding 
   applied.
 * Wishing I could attach an image to this… My CSS is reasonably good, but I just
   can’t work it out!
 *  Thread Starter [Bree](https://wordpress.org/support/users/lifesgood/)
 * (@lifesgood)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/ad-padding/#post-4850607)
 * So I finally worked it out…
 * The only way it would work was to set the width and height (within the plugin
   settings for the group) to “auto” and then write my own min-width and padding
   values within the CSS with !important for each. It’s sure taken some time, but
   it works!
 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/ad-padding/#post-4850629)
 * Or you just set the margin in the group settings…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Ad padding’ is closed to new replies.

 * ![](https://ps.w.org/adrotate/assets/icon-256x256.gif?rev=3117289)
 * [AdRotate Banner Manager](https://wordpress.org/plugins/adrotate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/adrotate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/adrotate/)
 * [Active Topics](https://wordpress.org/support/plugin/adrotate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/adrotate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/adrotate/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [padding](https://wordpress.org/support/topic-tag/padding/)

 * 4 replies
 * 2 participants
 * Last reply from: [Arnan](https://wordpress.org/support/users/adegans/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/ad-padding/#post-4850629)
 * Status: resolved