How can i stretch the height of the sidebar div? I tried using min-height :100% but it creates more space and white space.
That child of the sidebar has been given a height of 100%: 100% of what? The sidebar has no height specified.
Thanks for the help. I just set the position to fixed and set the scrollbar to overflow-y:auto
it’s a really common issue, and the solution (add a height to parent) is quite context-sensitive, it depends on what you need for a specific situation. There is a common assumption that applying 100% height will push an element to the full height of whatever its parent element is. The thing is, the browser needs to know explicitly what the height of the parent element is (then if the parent is 100%, need to know what the height of the grandparent is and so on).
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.