从浏览器底部取消附加页脚

时间:2012-06-22 07:01:17

标签: html css alignment positioning footer

我很久以前编写了我的页脚,我可以弄清楚我做了什么将它附加到浏览器的底部并停止页面滚动。我想要的是页脚位于#main div之下,所以你必须向下滚动才能看到它。

我为我的凌乱代码道歉,并为此提出这个乏味的问题

艾伦,16

http://dl.dropbox.com/u/13722201/Dorset%20Designs/home.html

2 个答案:

答案 0 :(得分:0)

要做的两件事:

  1. 从#footer
  2. 中删除“position:fixed”
  3. 在其中添加“clear:both”
  4. 我认为这应该有效。

答案 1 :(得分:0)

从您的position:fixed元素中移除bottom: 0#footer,因此页脚会是,

#header {
    height: 110px;
    width: auto;
}