如何在DIV之间添加空间? [英] How to add space between DIVs?

查看:252
本文介绍了如何在DIV之间添加空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WordPress生成的页面,我想将AdSense放在页面的标题下。 http://imgur.com/WPXeG 查看图片

I have a WordPress generated page where I want to place AdSense below the header of the page. See image at http://imgur.com/WPXeG

我想在标题和AdSense广告之间创建一些空白。我已尝试在包含AdSense广告的div(如下所示)中添加margin-top和padding。 - 全部无效。

I want to create some white space between the header and the AdSense ad. I've tried adding margin-top and padding to the div that contains the AdSense ad (as noted 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 = "**************";

我必须在标题和AdSense广告之间提供一些空白吗?

What do I have to do provide some white space between the header and the AdSense ad?

PS该网站是 http://phoneswithwindows.com/

推荐答案

放入您的css

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

这篇关于如何在DIV之间添加空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆