• i am using scylla lite template. i have currently put a 728×90 adsense ad in my header but it looks like:

    top of page:
    (LOGO)
    ADDDDDDDDDDDDDDDDDDDDDDDDDDD

    but i want it to look like:
    top of page:
    (LOGO) ADDDDDDDDDDDDDDDDDDDDDDDDDDD

    so it takes up less space and flows nicely.

    can any tell me what i am doing wrong or need to change? thanks!

    <!--LOGO-->
    <div id="logo">
    <h1><a class="text_logo" href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
    <?php if($option["scl_description"] == "1"){ ?><div class="desc"><?php bloginfo('description')?></div><?php } else { ?><?php } ?>
    <div style="float:right"> <script type="text/javascript"><!--
    google_ad_client = "ca-pub-xxxxxxxxxxxxxxxxxx";
    /* AD NAME */
    google_ad_slot = "xxxxxxxxxxxxx";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></div>
    </div>
    
    </div>
    <!--TOPMENU-->
Viewing 5 replies - 1 through 5 (of 5 total)
  • You want to align them one to each other? Try to change the float or/and align css settings

    Thread Starter grizzly1716

    (@grizzly1716)

    yeah i basically want them on the same line

    Give me an URL and I will try to help you with the css

    Thread Starter grizzly1716

    (@grizzly1716)

    i wont post the url because the site has a maintenance page and is currently not done nor ready to share.

    here is my header style sheet:

    /*HEADER*/
    #header{ float:left; width:100%;}
    #logo{ margin-top:-20px; float:left;}
    #logo a{ color:#424242; text-decoration:none; font-size:30px; float:left;}
    #logo a img{ border:none; float:left;}
    #logo .text_logo{ display:block; padding-top:20px;}
    #logo .desc{ width:auto; float:left; padding-top:10px;}
    #logo h1{margin-top: 0!important;}

    I understand. Try to make the adsence div float:left; too. if it doesn’t work try to play with the logo div float and inline settings. I can’t really help without to take a look

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘adsense placement in header. HELP!’ is closed to new replies.