0

So I have two divs that are overlapping and I don't know what caused it to.

Here's the URL: http://dennis-reviews.netne.net/

As a side problem: How can I center the navigation list at the top?

4

4 回答 4

1

改为#container_info

#container_info {
    height: 185px;
    width: 1024px;
    margin: 0px auto;
    overflow: hidden;
}

并居中添加此 CSS 规则:

#navigation ul {

    width: 1024px;
    margin:0px auto;

}
于 2013-08-01T15:49:02.737 回答
1

在 CSS 中使用以下属性作为页脚div clear: left;

于 2013-08-01T15:49:21.023 回答
0

如果您添加clear: left;#footerthen 将解决它。

#footer {
  height: 80px;
  width: 100%;
  background: #1A1A1A;
  clear: left;
}

如果你不确定这是如何工作的,有一篇关于CSS-Tricks的好文章可以解释这一切。

于 2013-08-01T15:52:08.223 回答
0

您的课程.info需要 max-height:180px;在 css 中

于 2013-08-01T15:49:41.507 回答