开发者

Absolute positioned div not display full content when the content extends beyond the browser height

So, my issue right now is that I have a wrapper div with o开发者_StackOverflow中文版verflow: hidden and a min-height: 100% so that it stays the height of the browser window.

However, this causes issues when I have a huge population of content on the sidebar (shown in the linked image)

http://d.pr/2jVn

If I remove the overflow: hidden from the wrapper div then it'll just look funky.

What I need to know is how to keep my content displaying without it disappearing.


Add max-height:100% and overflow: auto at your div. i am pretty sure this is going to work. But it would be better for us if you provided some code.


You might want to try something like this:

#yourDiv {
    min-height:100%;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜