How to add space between DIVs?

后端 未结 5 974
我在风中等你
我在风中等你 2021-01-13 15:05

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

I want to create some white space

5条回答
  •  太阳男子
    2021-01-13 15:54

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

    If you look at your page with Firebug, or the developer tools in your favorite browser, you can see that your ad div actually sits above and layered below your header divs, and when you add clear: both, it will move down to where it should be.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题