Update: What a day! Forgot to save my work... Here is the functioning example. Thank you for any assistance.
I have set up a demo here of the issue I'm facing.
I am utilizing this menu as the foundation for a page I am developing.
The menu is built using Bootstrap 3
and jQuery
.
I can't seem to understand why the black sidebar (#sidebar-wrapper
) doesn't adjust its size according to the content, always starting at a fixed height. It appears that the initial height matches the visible area of this element.
In essence, I want the menu column to adjust in the following manner:
- min-height = screen-height - 50px (leaving space for the header)
- or its height should match the height of the main content (
#page-content-wrapper
) which will contain varying amounts of data.
Through my research, I came across CSS code that expands an element to the full page height (as a minimum):
min-height: 100vh;
However, I haven't been able to incorporate the 50px difference. Am I interpreting it correctly?
Any help would be highly appreciated!