开发者

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

开发者 https://www.devze.com 2023-02-11 12:05 出处:网络
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.

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

精彩评论

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

关注公众号