2016-10-19 10 views
0

にはどうすればもっとthis?2つのGoogle広告の間のスペース/マージンを削除するにはどうすればよいですか?

のように私はワードプレスを使用していると私は私の広告センスコードで接続しようとして見て these two google ads間のスペースをなくすことができます。私はさまざまなサイズを試しましたが、反応するものもそうでしたが、余白/スペースは常に広告を分離しています。ここで

は、広告のセンスコードです:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 
<!-- Responsive --> 
<ins class="adsbygoogle" 
style="display:block" 
data-ad-client="ca-pub-00000000000" 
data-ad-slot="000000" 
data-ad-format="auto"></ins> 
<script> 
(adsbygoogle = window.adsbygoogle || []).push({}); 
</script> 

答えて

0

は、単純に50%の幅を持つ2つのdiv要素それぞれを浮遊し、内部に広告コードを配置します。

.half { 
 
    float: left; 
 
    width: 50%; 
 
} 
 

 
.clear { 
 
    clear: both; 
 
}
<div class="wrapper"> 
 
    <div class="half"> 
 
     place your first ad code here 
 
    </div> 
 
    <div class="half"> 
 
     place your second ad code here 
 
    </div> 
 
</div> 
 
<div class="clear"></div>

のAdSenseが利用できる高さを決定できない場合は、さらに.wrapperからmin-height: 100pxを設定することができます。