Adsense ADS placement and distance to text

Discussion in 'Placement / Reviews / Examples' started by corlas, Jul 26, 2010.

  1. #1
    Hi, a quick question:

    I normally use a style to wrap text around the ADS like this:

    <div style="float: left;">
    ADSENSE CODE HERE
    </div>
    Code (markup):
    I would like to add some vertical and horizontal space between the ADS and the text of the page.

    What would the correct syntax be ?
     
    corlas, Jul 26, 2010 IP
  2. salright

    salright Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This seems to work for me.. (this puts the 20 px padding on all sides)

    <div style="float: left; padding: 20px;">
     
    salright, Jul 26, 2010 IP
  3. salright

    salright Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Otherwise something like this can specify which side and amt of margin.

    <div style="float: right; margin-left: 20px;">

    I use it differently on my site (stoppedsnoring.com) within the paragraphs. I think it looks ok. Maybe you're trying to go for something different though?
     
    salright, Jul 26, 2010 IP
  4. corlas

    corlas Active Member

    Messages:
    208
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    That's Awesome. Thank you all !!!
     
    corlas, Jul 27, 2010 IP