Too much of a space between text and adsense block

scorpion896

Senior Member
Joined
Jan 10, 2009
Messages
929
Reaction score
214
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.
 
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?
 
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;"
 
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;"

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 :/
 
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 :/

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.
 
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 :/

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. :)
 
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. :)

My apologies. Here's how it looks:

paragraph text.

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

paragraph text.


2hd8gn5.png
 
Check the margin values in your html or css, and set them to 5px or less.
 
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
 
My apologies. Here's how it looks:

paragraph text.

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

paragraph text.


2hd8gn5.png

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.
 
Back
Top