How to add space between div?

I have a WordPress generated page where I want to place AdSense under the page title. See Image http://imgur.com/WPXeG

I want to create a space between the headline and the adsense ad. I tried adding margin-top and padding to the div that contains the adsense ad (as indicated below) - all to no avail.

<div style="text-align: center; margin-top: 5px; padding: 13px 0 10px 0;"> <script type="text/javascript"><!-- google_ad_client = "**************"; google_ad_slot = "**************"; 

What do I need to do to provide some space between the headline and the adsense ad?

PS Website http://phoneswithwindows.com/

+4
source share
5 answers

enter your css

 #access { margin-bottom: 5px; /* or whatever */ } 
+10
source

I added margin-top: 5px to the <ins> element inside the div, and it works. If you can add id to div, you use this css rule:

 div#adds > ins{ margin-top: 5px; } 
+2
source

Add margin-bottom to div with access id

+1
source

Your #access div has float:left; so you need to add clear:left (or clear:both ) to the div containing the declaration, so they don't overlap.

If you look at your page using Firebug or the developer tools in your favorite browser, you will see that your advertising div is actually sitting above and overlapping your headings, and when you add clear: both , it will move down where it is should be.

+1
source

You tried to add the following

 <div style="clear:both;"></div> 

after the div header?

Thus, the smoothing of the header (if it had a float) was cleared, and the bottom Ad attribute should now use the padding

+1
source

All Articles