Title: Wrapper Code does not work
Last modified: November 25, 2021

---

# Wrapper Code does not work

 *  Resolved [Rodrigo](https://wordpress.org/support/users/vejapixel/)
 * (@vejapixel)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/wrapper-code-does-not-work/)
 * Hello guys,
 * The ads that the plugin adds create a top margin, but no bottom margin: [https://prnt.sc/20x2ta3](https://prnt.sc/20x2ta3)
 * So, I decided to insert a code (`<span style="margin-bottom: 40px;">`) to create
   a bottom margin: [https://prnt.sc/20x2tx2](https://prnt.sc/20x2tx2)
    However,
   it is not working. Any code for css I try to insert, nothing happens in the ad.
 * Could you guys tell me if I’m doing something wrong?
 * Thanks!

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

 *  Plugin Author [Arnan](https://wordpress.org/support/users/adegans/)
 * (@adegans)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wrapper-code-does-not-work/#post-15226568)
 * Hi, SOrry for the late reply.
 * AdRotate adds no margins outside it’s div, so the margin you see comes from something
   else.
    Using a `<span>` may add a margin inside the advert div, but that’s probably
   not what you’re looking for.
 * If you inspect the code you can see that every group has the `g` class but also
   a `g-N` class (where N is the group ID).
    This lets you add CSS to the wrapper
   div easily. Adding something like this to your custom CSS probably fixes your
   margin issue: `.g {margin: 40px 0;}`
 *  Thread Starter [Rodrigo](https://wordpress.org/support/users/vejapixel/)
 * (@vejapixel)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wrapper-code-does-not-work/#post-15228728)
 * Hi Arnan,
 * It worked out. Thanks!

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

The topic ‘Wrapper Code does not work’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Rodrigo](https://wordpress.org/support/users/vejapixel/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/wrapper-code-does-not-work/#post-15228728)
 * Status: resolved