开发者

Footer issue in IE6 & 7

At this site, in IE 6 & 7 the footer's background should be grey开发者_StackOverflow; outside of the white box. It looks correct in firefox, chrome & IE8, but not IE6 & 7 the footer's background is white and inside the box. I have tried many things with no luck. I wonder if anyone can offer suggestions?


The problem is the way you're floating the footer components left and right, which lifts them out of the footer's content flow. Essentially what this does is it leaves your footer with no content so it occupies no space. If you put a width property onto your #foot then you'll regain the control to do what you're trying to.

#foot {
    background-color: #dfe0e0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #6D6F72;
    font-weight: bold;
    width: 980px;
}

The reason it 'appears' to work in firefox etc is that they're handling the overflow: visible style on your #main correctly, whereas IE6 & 7 really don't have a clue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜