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?
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?
改为#container_info
:
#container_info {
height: 185px;
width: 1024px;
margin: 0px auto;
overflow: hidden;
}
并居中添加此 CSS 规则:
#navigation ul {
width: 1024px;
margin:0px auto;
}
在 CSS 中使用以下属性作为页脚div
clear: left;
如果您添加clear: left;
到#footer
then 将解决它。
#footer {
height: 80px;
width: 100%;
background: #1A1A1A;
clear: left;
}
如果你不确定这是如何工作的,有一篇关于CSS-Tricks的好文章可以解释这一切。
您的课程.info
需要 max-height:180px;
在 css 中