• So guys, after pretty much going through all useful forum posts I came to the conclusion that the best way to center a banner is with a class.And here is how my adsense code looks like:

    <div class=”adsenseAd”>
    <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
    <!– beebaner –>
    <ins class=”adsbygoogle”
    style=”display:inline-block;width:728px;height:90px”
    data-ad-client=”ca-pub-6341692627121803″
    data-ad-slot=”6005798378″></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    </div>

    And this is at the bottom of my Stylesheets:

    .adsenseAd { text-align: center;
    }

    And the result is: http://ebookbees.com/dracula-free-ebook/

    I don’t really understand why it isn’t properly displaying the class. Please give me an idea, what I should try, since I feel like I have 0 control over the banners. Thank you all!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I looked at the page, turning off AdBlock, and I don’t see where your AdSense section is. Where exactly on the page should it appear?

    Thread Starter jotOFF

    (@jotoff)

    Well, I tried something else that might be helpful to starters like myself. I used the Adsense Publisher plugin, and placed the adds with the ad management tool. Makes no sense to manually do the work if you’re happy with what the plugin offers as positioning.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘text-align: center not working. Please Help!’ is closed to new replies.