Placing Adsense in My Blog

Discussion in 'HTML & Website Design' started by netgo, Nov 24, 2009.

  1. #1
    Hi,

    I currently have Adsense in my blog Best Constipation Cures above my posts.
    I want it to still be in the same place but I want the posts text to be also to the right of the adsense unit and not only beneath it.

    Any tips on how can I do that?

    Thanks in advance
     
    netgo, Nov 24, 2009 IP
  2. Astroman

    Astroman Well-Known Member

    Messages:
    2,355
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    135
    #2
    You need to put you adsense block in a div that has styling to make it the same size as the adsense block and floated left.

    Say like:
    
    <div class="adsense_block"><script>adsense code</script></div>
    Code (markup):
    with this in your style sheet:

    .adsense_block {
    width: 300px;
    height: 250px;
    float: left;
    }
    Code (markup):
     
    Astroman, Nov 24, 2009 IP
  3. jauhari

    jauhari Peon

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Or you can use this trick

    <div style="float: left; width: 300px; height:250px; margin-right: 10px">AdSense Code Here</div>
    HTML:
     
    jauhari, Nov 24, 2009 IP
  4. scurvy

    scurvy Well-Known Member

    Messages:
    1,053
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    160
    #4
    U have an amazing site mate. Constipation cures. ROTFLMAO. And ur asking for Donations?? Jesus i havent laughed so hard in a long long time mate. kudos.

    Anyways use an WYSIWYG and edit the HTML of the blog an place the ads the way u like it.
    Thats the easiest way.
     
    scurvy, Nov 24, 2009 IP
  5. netgo

    netgo Active Member

    Messages:
    279
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    75
    #5
    Thank you Astroman and Jauhari!
     
    netgo, Nov 24, 2009 IP
  6. mobidhoom

    mobidhoom Active Member

    Messages:
    188
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #6
    mobidhoom, Mar 4, 2010 IP