• Resolved Rodrigo

    (@vejapixel)


    Hello guys,

    The ads that the plugin adds create a top margin, but no bottom margin: 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
    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

    (@adegans)

    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

    (@vejapixel)

    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.