Adsense ads placement question

Discussion in 'HTML & Website Design' started by Camay123, Mar 5, 2008.

  1. #1
    Im trying to create a simple text with an adsense ad on the top right corner of the text. The text would be beside the ad and continue under it full lenght.

    I have succeed in doing so with an image instead of the adsense code, but can not do it with the adsense code.

    See the attached image to get what I want.
     
    Camay123, Mar 5, 2008 IP
  2. iDerek

    iDerek Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For your adsense code did you try putting 'align=right' on the table or image?

    If everything works out as it should, the text that's not part of the adsense ad will wrap around it.
     
    iDerek, Mar 5, 2008 IP
  3. Jean126

    Jean126 Peon

    Messages:
    234
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <div style="float: right; margin: 0px; margin-top: 20px; padding-right: 5px" class="noprint">
    <script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXXXXX";
    /* artcomp, created 2/29/08 */
    google_ad_slot = "1366346968";
    google_ad_width = 200;
    google_ad_height = 200;
    //-->
    </script>
    </div>
    text text text
    
    Code (markup):
     
    Jean126, Mar 5, 2008 IP
  4. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #4
    This as done the job beautifully, but something is screwing the rest of my page, when I insert that code.

    Error page: http://usagolfvacations.net/Articles/Discount_Golf_Clubs

    Right page: http://usagolfvacations.net/Articles/Plan_a_discount_Golf_Vacation
     
    Camay123, Mar 5, 2008 IP
  5. lock

    lock Banned

    Messages:
    205
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Are yo allowed to attach div tags to google adsense?
     
    lock, Mar 5, 2008 IP
  6. thrillseeker30

    thrillseeker30 Guest

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I don't see any difference with either link.

    For you Adsense, did you place it inside a div and perhaps give the div a "float:right" and then use margins to position it?
     
    thrillseeker30, Mar 5, 2008 IP
  7. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #7
    Yes. I just corrected the problem.

    My article preview box was trying to load the adsense code....
     
    Camay123, Mar 5, 2008 IP