• I was adding an adsense ad to my blog above the header and now my entire blog is centered… (www.kidworldcitizen.org)

    My theme is coraline. This is what someone told me to do. I only want the ad centered, not every single thing on the site:
    Place the following code directly before the opening <head> tag in the header.php file.

    <div align="center"><div class="banner-ad">
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-9452940836904778";
    /* Leaderboard */
    google_ad_slot = "5588351876";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>

    Place the following code at the bottom of the CSS file.

    .banner ad {
    width:728px;
    margin:0 auto;
    }

Viewing 3 replies - 31 through 33 (of 33 total)
Viewing 3 replies - 31 through 33 (of 33 total)
  • The topic ‘please help- my whole blog is centered!?’ is closed to new replies.