1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

No space between adsense block and text... How to Increase the margin?

Discussion in 'Blogging' started by scorpion896, May 17, 2012.

  1. scorpion896

    scorpion896 Senior Member

    Joined:
    Jan 10, 2009
    Messages:
    929
    Likes Received:
    212
    I have placed a 336 x 280 adsense block in the middle of my homepage and floated it left but my text to the right of it is starting right where the adsense block ends. In other words there is no space between my adsense block and the text coming after it. How do I add a margin or space?
     
  2. cristianraiber

    cristianraiber Regular Member

    Joined:
    Nov 22, 2008
    Messages:
    293
    Likes Received:
    381
    Occupation:
    Onliner
    Location:
    Internet
    wrap your adsense block around this code

    Code:
    <div style="float:left;padding: 5px;">
    
    <!-- adsense code goes here -->
    
    </div>
    
    
     
    • Thanks Thanks x 2
  3. scorpion896

    scorpion896 Senior Member

    Joined:
    Jan 10, 2009
    Messages:
    929
    Likes Received:
    212
    Thanks for the fast response, works perfect!
     
  4. cristianraiber

    cristianraiber Regular Member

    Joined:
    Nov 22, 2008
    Messages:
    293
    Likes Received:
    381
    Occupation:
    Onliner
    Location:
    Internet
    Glad I could help :)
     
  5. victorro

    victorro Newbie

    Joined:
    Mar 26, 2014
    Messages:
    1
    Likes Received:
    0
    Hello,

    I had the same problem with my google adsense ads... However I just added a padding of 15px between text and the ads. The problem is that my incomes from adsense fall a lot after that change :(
    Does anyone have an idea about the required distance; that should it be? I was thinking to change it to 10px or smaller but I'm not sure if is according to adsense terms as I didn't find anything mentioned about that on T&C :-s
    Thanks in advance.