text wrap around adsense block?

Discussion in 'HTML & Website Design' started by shirsc2, Oct 14, 2005.

  1. #1
    how do you get text to wrap around an adsense block? anyone know how to write the code? i sure don't
     
    shirsc2, Oct 14, 2005 IP
  2. Skeleton

    Skeleton Peon

    Messages:
    116
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this:

    <div>
    	<div style="float: right;">Your AdSense code goes here</div>
    	Your content goes here
    </div>
    Code (markup):
     
    Skeleton, Oct 14, 2005 IP
    iconrate likes this.
  3. shirsc2

    shirsc2 Peon

    Messages:
    439
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks, that helps tremendously
     
    shirsc2, Oct 14, 2005 IP
  4. Skeleton

    Skeleton Peon

    Messages:
    116
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your welcome. You can give me some green (+reputation) :)
     
    Skeleton, Oct 14, 2005 IP
  5. shirsc2

    shirsc2 Peon

    Messages:
    439
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    no problem..just did it
     
    shirsc2, Oct 14, 2005 IP
  6. ken123

    ken123 Peon

    Messages:
    527
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Where do you put it in the blogspot.com template?
    It has something like this.

    <!-- Begin .post -->

    <div class="post"><a name="<$BlogItemNumber$>"></a>

    <BlogItemTitle>
    <BlogItemUrl><a href="<$BlogItemUrl$>" title="external link" class="title-link"></BlogItemUrl>
    <h3 class="post-title">
    <$BlogItemTitle$>
    </h3>
    <BlogItemUrl></a></BlogItemUrl>
    </BlogItemTitle>

    <div class="post-body">

    <p>
    <$BlogItemBody$>
    </p>

    </div>
    <p class="post-footer">
    <em>posted by <$BlogItemAuthorNickname$> @ <a href="<$BlogItemPermalinkUrl$>" title="permanent link"><$BlogItemDateTime$></a></em> &nbsp;

    <BlogItemCommentsEnabled>
    <a class="comment-link" href="<$BlogItemCommentCreate$>"<$BlogItemCommentFormOnclick$>><$BlogItemCommentCount$> comments</a>
    </BlogItemCommentsEnabled> <$BlogItemControl$>
    </p>

    </div>

    <!-- End .post -->

    Never mind I got it now, thanks.
     
    ken123, Oct 14, 2005 IP
  7. Skeleton

    Skeleton Peon

    Messages:
    116
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This should work:

    <!-- Begin .post -->
    
    <div class="post"><a name="<$BlogItemNumber$>"></a>
    
    <BlogItemTitle>
    <BlogItemUrl><a href="<$BlogItemUrl$>" title="external link" class="title-link"></BlogItemUrl>
    <h3 class="post-title">
    <$BlogItemTitle$>
    </h3>
    <BlogItemUrl></a></BlogItemUrl>
    </BlogItemTitle>
    
    <div class="post-body">
    [B]<div style="float: right;">Your AdSense code goes here</div>[/B]
    <p>
    <$BlogItemBody$>
    </p>
    
    </div>
    <p class="post-footer">
    <em>posted by <$BlogItemAuthorNickname$> @ <a href="<$BlogItemPermalinkUrl$>" title="permanent link"><$BlogItemDateTime$></a></em> &nbsp;
    
    <BlogItemCommentsEnabled>
    <a class="comment-link" href="<$BlogItemCommentCreate$>"<$BlogItemCommentFormOnclick$>><$BlogItemCommentCount$> comments</a>
    </BlogItemCommentsEnabled> <$BlogItemControl$>
    </p>
    
    </div>
    
    <!-- End .post -->
    Code (markup):
    P.S: The rectangle AdSense blocks best fit for this kind of use.
     
    Skeleton, Oct 14, 2005 IP
  8. rsankar

    rsankar Peon

    Messages:
    32
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Skeleton..This did not work..I am using 200x90 link ad
     
    rsankar, May 5, 2006 IP
  9. ascensions

    ascensions Active Member

    Messages:
    175
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #9
    Blogger won't allow Div tags for adsense, atleast from my measley attempts. If you find otherwise, let me know.
     
    ascensions, May 29, 2006 IP
  10. iMarketer17

    iMarketer17 Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Sweet.. that got part of my problem fixed.

    I'm using this in Wordpress... but now the text is smashed up really close to the adsense block. Anyone know how to add a little bit of room around it?
     
    iMarketer17, Sep 3, 2008 IP
  11. ih82lose

    ih82lose Active Member

    Messages:
    377
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #11
    This should work:
     
    ih82lose, Sep 5, 2008 IP
  12. DianeS55

    DianeS55 Peon

    Messages:
    136
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #12
    My margin at 7px looks good to me so I will use that. this thread has been so helpful. thanks everyone!
     
    DianeS55, Mar 3, 2009 IP
  13. robinko

    robinko Peon

    Messages:
    79
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Confirm! This code work.
     
    robinko, Mar 9, 2009 IP
  14. bilaljshahid

    bilaljshahid Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    what is the mininum margin I should use? I heard google dosnt like content too close to the adverts.
     
    bilaljshahid, Mar 19, 2011 IP
  15. naijafinder

    naijafinder Well-Known Member

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #15
    how to make it work with vb 4?
     
    naijafinder, Mar 16, 2013 IP