Liquid CSS 布局问题

发布于 2024-08-19 00:55:10 字数 312 浏览 11 评论 0原文

好吧,我的个人网站有一个基于 CSS 液体 div 的布局。地址是 http://danberinger.com/preview.html

问题是我不想要页脚部分就好像它是内联显示的,因为现在当窗口拉伸超出 intro_container 所需的像素宽度时,它会将页脚 div 移动到其右侧。我希望此页脚保持在页面底部,而不是在空间允许的情况下向上和向右移动。

感谢您提供的任何帮助。到目前为止我很喜欢这个论坛,非常有帮助。

Alright I have a CSS liquid div based layout for my personal web site. The address is
http://danberinger.com/preview.html

The problem is the I do not want the footer section to act as if it were displayed inline, because right now when the window is stretched beyond the pixel width needed for the intro_container, it moves the footer div to the right of it. I would like this footer to stay put at the bottom of the page rather than moving up and to the right when space allows for it.

Thanks for any help you can offer. I have loved this forum so far, very helpful.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清风挽心 2024-08-26 00:55:10
#footer {
    clear: both;
}

这将确保它始终被推到所有其他浮动内容下方。这似乎提供了您所要求的效果。

#footer {
    clear: both;
}

This will ensure it is always pushed down below all other floated content. This seems to provide the effect you are asking for.

小巷里的女流氓 2024-08-26 00:55:10

这是它的 css 修复

#footer{
position:absolute;
bottom:0;
}

here is css fix for it

#footer{
position:absolute;
bottom:0;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文