Title: padding
Last modified: May 2, 2022

---

# padding

 *  Resolved [hardimos](https://wordpress.org/support/users/hardimos/)
 * (@hardimos)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/)
 * I have a set a group of ads but appeared stacked to each other. I want some padding
   between them.
    Besides, if i define the size of i need (height) it is applied.
   Width is applied.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpadding-40%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15608912)
 * Hi hardimos,
 * Thanks for reaching out.
 * I recommend editing your ad units, navigating to the [layout section](https://wpadvancedads.com/manual/optimizing-the-ad-layout/#Margin),
   and adding a top/bottom margin to them.
 * Best regards,
    Joachim
 *  Thread Starter [hardimos](https://wordpress.org/support/users/hardimos/)
 * (@hardimos)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15609394)
 * Thanks for you quick respond.
 * If I understand well, you mean to adjust size for all ads in photoshop so they
   all are equal.
    Yes, this is an option if there is no alternative. No problem.
   But, how can I adjust margin between them?
 * Also, is there an option to open ads in a new tab?
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15611141)
 * Hi,
 * What I tried to explain is that you can find the margin settings in the layout
   section of every ad. Please, see [this muanal](https://wpadvancedads.com/manual/optimizing-the-ad-layout/#Margin).
 * So if your ads are stacked together, you could easily add there a margin of, 
   e.g., 15px.
 * If you want your ads to be the same size, I recommend creating them that way 
   already in Photoshop. For example, if you use a rectangle (300×250) together 
   with a leaderboard (728×90), then their dimensions will always differ. You can’t
   change this with the ad size settings. With these values there you help Advanced
   Ads to see the size of your ad. If you choose the image ad type, it is not necessary
   to fill this in.
 * Best regards,
    Joachim
 *  Thread Starter [hardimos](https://wordpress.org/support/users/hardimos/)
 * (@hardimos)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15614767)
 * Sorry about that, but maybe i was not clear. I have tried already margins with
   a small number for 5px. I have tried also with Check this if you don’t want the
   following elements to float around the ad. (adds a clearfix), checked and unchecked.
 * It adds a margin alright, but although is enough space, it pushes ads one below
   to each other.
 * Concerning dimension, i ofcource understand if ratio differences are very big,
   they could not be the same, but i’m talking the case where one ad is 350X 360px
   and the other is 350x370px. It does not alter the height (even with distortion,
   to 360px.
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15617741)
 * Is there any option to see this behavior on your website? I noticed that it is
   not public yet.
 * Best regards,
    Joachim
 *  Thread Starter [hardimos](https://wordpress.org/support/users/hardimos/)
 * (@hardimos)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15617856)
 * I turn it on for some hour, so you can check
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15617996)
 * Hi [@hardimos](https://wordpress.org/support/users/hardimos/),
 * Thanks for switching your website to the live version. I assume that you refer
   to the image ads below the “We suggest” block and not to the sidebar ads on single
   pages.
 * It looks like there are two problems.
 * 1. Margins
 * When I add a 10px margin on top/down/left/right with my browser tools, it looks
   much better, and the ads are not stacked together. Currently, I cannot see that
   the ads have any margins.
 * 2. Different widths
 * The difference between the widths 336px and 370px cause this visual problem. 
   You could use CSS to define a `max-width: 336px` for each ad.
 * To apply this CSS rule to your ads, I recommend adding a specific class to these
   ads. You can find a field to insert a class in the layout section of each ad 
   unit.
 * If you constantly change these ads and don’t want to edit every ad, you could
   use the ad group ad type to inherit a class automatically. This ad type is a 
   bit confusing, but we explain it in [this manual](https://wpadvancedads.com/inheriting-ad-settings/).
 * Alternatively, you could use the [ad grid option of Advanced Ads Pro](https://wpadvancedads.com/manual/ad-grids/)
   to set a max-width and inner margins automatically.
 * Best regards,
    Joachim
 *  Thread Starter [hardimos](https://wordpress.org/support/users/hardimos/)
 * (@hardimos)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15618073)
 * Well, i have 2 sets with different sizes. I have grouped them in different groups
   so they are together. This is not the issue. First 2 rows are equal in one size
   and other rows equal sizes (different from first 2 rows) Maybe i will fix them
   later.
 * As i said, i have tried to put margins and then goes one below to each other.
   At the moment I added again these margins to the first 6 ads (they have same 
   size)
 * Even i’m a novice in coding, i manage to add a class, but results are the same
 * I have used the pro version in another site. I’m trying to convince this client
   to buy it…..
 * Is a way to sen you login detail in a private message?
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15618163)
 * It looks as if you would have enabled the clearfix now. Can you please disable
   it?
 * If you have an active license, please, [reach out to our premium support](https://wpadvancedads.com/support/)
   to let us check your website with credentials.
 * Best regards,
    Joachim
 *  Thread Starter [hardimos](https://wordpress.org/support/users/hardimos/)
 * (@hardimos)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15619838)
 * “Check this if you don’t want the following elements to float around the ad. (
   adds a clearfix)” is not marked. Absolutely sure. for all ads
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15621644)
 * Hmm, that is strange. Yesterday, I saw all these ads from the first group in 
   one column, so I guessed that the clearfix is enabled.
 * Today, it looks like before and they are stacked together. What did you change
   meanwhile?
 * Best regards,
    Joachim
 *  Thread Starter [hardimos](https://wordpress.org/support/users/hardimos/)
 * (@hardimos)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15621892)
 * I was experimented with class. So as you see (even with specific class), it always
   does this thing. Even with 1px margin or padding!
    I have also tried the inline
   css in placements with no luck I stacked.
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15635234)
 * Hi,
 * I have now tried again to achieve your result on a test page. If I insert a group
   with several ads and set a higher number of visible ads whose alignment settings
   are set to “default”, these ads appear one below the other. Just like it was 
   the case on your page the other day.
 * Can you please describe again in detail how you integrate these ads there to 
   this grid? Do you simply assign a group to a placement, or are there elements
   from your theme involved here?
 * Best regards,
    Joachim
 *  [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * (@schmidt25)
 * [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15663478)
 * Hi,
 * I noticed that you contacted us through our Pro Support, and you chose the ad
   grid solution after all. I think that is also the best option for your use case.
 * I will close this thread.
 * Best regards,
    Joachim

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

The topic ‘padding’ is closed to new replies.

 * ![](https://ps.w.org/advanced-ads/assets/icon-256x256.gif?rev=2773443)
 * [Advanced Ads – Ad Manager & AdSense](https://wordpress.org/plugins/advanced-ads/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-ads/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-ads/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-ads/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-ads/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-ads/reviews/)

 * 14 replies
 * 2 participants
 * Last reply from: [schmidt25](https://wordpress.org/support/users/schmidt25/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/padding-40/#post-15663478)
 * Status: resolved