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

Too much of a space between text and adsense block

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

  1. scorpion896

    scorpion896 Senior Member

    Joined:
    Jan 10, 2009
    Messages:
    929
    Likes Received:
    212
    For some reason when I put a 336 x 80 adsense block in the middle of my text, it is leaving a big gap between my paragraph and the adsense block under it. Anyone else had this happen to them? if so how to fix?

    For example at the end of my paragraph if I want an adsense block under that, it is leaving 4-5 blank lines before showing my adsense block.
     
  2. seontist

    seontist Registered Member

    Joined:
    Oct 13, 2011
    Messages:
    71
    Likes Received:
    5
    In what platform?
     
  3. scorpion896

    scorpion896 Senior Member

    Joined:
    Jan 10, 2009
    Messages:
    929
    Likes Received:
    212
    Wordpress
     
  4. scorpion896

    scorpion896 Senior Member

    Joined:
    Jan 10, 2009
    Messages:
    929
    Likes Received:
    212
    Anyone?
     
  5. deno555

    deno555 Junior Member

    Joined:
    Mar 16, 2011
    Messages:
    157
    Likes Received:
    20
    I always using quick adsense to add adsense code in the middle of content...the ads margin between paragraph and position can be adjust at setting panel... Is that what you mean?
     
  6. WCO12

    WCO12 Junior Member

    Joined:
    Feb 1, 2012
    Messages:
    170
    Likes Received:
    91
    Occupation:
    Empire building
    Location:
    Columbus, OH, USA
    Have you checked the HTML view of your post to make sure you don't have additional, possibly empty tags like extra <p> or <br> tags between your paragraph and the ad block?

    The other likely culprit is CSS code in your theme that is automatically adding margins or padding to your adsense <div>, likely by accident. To test, go into the HTML view of one of your posts and add this to your ad's <div>:

    HTML:
    style="margin:0;padding:0;"
     
  7. scorpion896

    scorpion896 Senior Member

    Joined:
    Jan 10, 2009
    Messages:
    929
    Likes Received:
    212
    when i change the padding from 0 to 20 or 20 to 0 that just effects the space between the text and the ad 'horizontally'. Because I am floating my ad on the right i set it to padding 20 but that does not affect the space above the ad from the text ABOVE it. Hard to explain :/
     
  8. webso

    webso BANNED BANNED

    Joined:
    Apr 4, 2012
    Messages:
    501
    Likes Received:
    93
    Are you using any plugin? If yes check the settings down to it. Use easy adsense , it will push ads between articles just by adjustment of placing ads panel.
    Remove the current codes and reapply with plugin.
     
  9. WCO12

    WCO12 Junior Member

    Joined:
    Feb 1, 2012
    Messages:
    170
    Likes Received:
    91
    Occupation:
    Empire building
    Location:
    Columbus, OH, USA
    Setting margin:0 and padding:0 will change the margin and padding on all sides of the <div>.

    Hard to troubleshoot without seeing the code. :)
     
  10. scorpion896

    scorpion896 Senior Member

    Joined:
    Jan 10, 2009
    Messages:
    929
    Likes Received:
    212
    My apologies. Here's how it looks:

    paragraph text.

    <div style="float:right;padding: 20px;">
    adsense code
    </div>

    paragraph text.


    [​IMG]
     
  11. Aty

    Aty Jr. VIP Jr. VIP

    Joined:
    Jan 27, 2011
    Messages:
    5,411
    Likes Received:
    3,699
    Home Page:
  12. geomuss

    geomuss Regular Member

    Joined:
    May 19, 2011
    Messages:
    243
    Likes Received:
    110
    just do inline test in chrome of firefox and play around with the CSS

    most likely find you have a setting for margin top or bottom to large on something

    your better giving someone the address probably take 2 mins to figure out
     
  13. webso

    webso BANNED BANNED

    Joined:
    Apr 4, 2012
    Messages:
    501
    Likes Received:
    93
    aha its css , change the value to 5px or 2px.
    Though , if still fail , give access to someone and he/she could fix it by then.
     
  14. sirthomas

    sirthomas Registered Member

    Joined:
    May 5, 2012
    Messages:
    98
    Likes Received:
    49
    Occupation:
    Local Business Marketing
    Location:
    BC, Canada
    It's not CSS, it's the posititiong of the div in the code.
     
  15. WCO12

    WCO12 Junior Member

    Joined:
    Feb 1, 2012
    Messages:
    170
    Likes Received:
    91
    Occupation:
    Empire building
    Location:
    Columbus, OH, USA
    Just based off the image that's my first guess - the div looks like it might be inside the p