【发布时间】:2014-04-14 13:25:24
【问题描述】:
我的整个网站容器是一个位于页面中心的黑色背景上的白色框。 为此,内容可以调整我必须设置的框的大小:
.container {
position: absolute;
background-color: white;
min-height: 90%;
top: 5%;
width: 95%;
left: 2.5%;
}
尝试在此处获取页脚如下所示:
footer {
margin-left: auto;
margin-right: auto;
width: 85%;
text-align: center;
height: 2.4em;
border-top: 1px solid black;
}
为了让页脚到底部,我假设我必须为实际内容定位容器
%header
%section.content /<----
%footer
最小高度为 100%,但这不起作用。
这是一个小提琴:http://jsfiddle.net/a6QTv/1/
【问题讨论】:
标签: html css sass haml sticky-footer