Putting AdSense where I want it

Discussion in 'HTML & Website Design' started by outspan, May 2, 2012.

  1. #1
    Hey all,

    I have a blog here: http://wysinnwyg.com/blog/

    which is based on a professional Wordpress theme that I've slowly been modifying to suit my needs.

    I'm trying to put AdSense code at the top of my posts, but the layout is not how I want it. I want the "resize text" option to be aligned with the bottom of the ad instead of the top (see below):

    [​IMG]

    For those who have AdBlock or similar and don't see the AdSense ad, I would also like the Resize option to appear without so much white space (given by the margin-bottom that I've set so far, which I know is a bad option) before the beginning of the article.

    The code right now is:

    
    <!-- Google AdSense -->
    <div style=”display:block;float:left;margin: 0px 10px 0px 0px;”>
    
    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-9462732328392654";
    /* Wysinnwyg -Top of the post */
    google_ad_slot = "8364417002";
    google_ad_width = 468;
    google_ad_height = 60;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    
    <div style="text-align:right; margin-bottom:50px; font-size:12px;"><b>Resize text <a href="javascript:decreaseFontSize();">-</a> 
    <a href="javascript:increaseFontSize();">+</a></b></div>
    
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div> <!-- End of entry -->
    
    Code (markup):
    I'm in your hands :D
     
    outspan, May 2, 2012 IP