• Resolved jamminjames

    (@jamminjames)


    Adding <div style=”text-align:center;”> in the AdCode box used to work for centering an ad I have in a widget on top of the page, but now it doesn’t.

    I’ve tried adding the attribute to other divs in the CSS, but nothing works. I saw in another post that an AdRotate person recommended using “aligncenter” but that doesn’t work, and is not even proper coding, as far as I know. Even “align:center” has been depreciated, it must be “text-align:center;”.

    You can see the ad at the top of the page at http://www.humortimes.com.

    Please help. Thanks.

    https://wordpress.org/plugins/adrotate/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    aligncenter is a class many themes use to center align stuff, there is nothing wrong with it.

    As you may have read AdRotate uses a new method of outputting groups. As predicted this affects some settings or custom CSS items.

    You could try and add something like this to your themes css:
    .g-3 { margin: 0 auto; }
    (where 3 is the group ID)

    Thread Starter jamminjames

    (@jamminjames)

    Thanks for the reply. .g-4 { margin: 0 auto; } didn’t work, though.

    How do you use “aligncenter”? I tried:

    .g-4.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
    }

    … but that doesn’t work.

    Plugin Author Arnan de Gans

    (@adegans)

    Something like <div class="aligncenter">STUFF HERE</div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ad won't center since update’ is closed to new replies.