0

I'm trying to have the header in fixed position.(Header staying fixed in top position and the content goes below) as soon as i put the position fixed the bottom margin collapses.

Any easy fix? I been trying to use clearfix, clear:both ect..

http://libra-frisk.com/gadjos/

4

4 回答 4

2

固定定位元素在典型盒子模型的流程之外

您可以在下面的内容上添加 margin-top 或在body

于 2013-03-05T22:51:10.343 回答
0

如果你想得到一些东西: 屏幕 你应该使用sliderHolder的更改规则到这个:

#sliderHolder {
    margin-top: 158px;
    width: 100%;
    height: 312px;
}
于 2013-03-05T23:06:18.263 回答
0

You could make it absolute position. I'm not sure if that helps because your question is unclear.

于 2013-03-05T22:53:04.843 回答
0

如果您希望标题保持固定,请添加以下内容:

#sliderHolder {
    width: 100%;
    height: 312px;
    margin-top: 158px;
}

你不需要clear:both,因为那是花车。

于 2013-03-05T22:57:41.657 回答