I have five different div boxes on my website: wrapper, header, navigation, content-title, and content. The height of the header and navigation sections is fixed, while the content should always stretch to the bottom of the webpage. However, I am experiencing an issue where a vertical scrollbar appears regardless of the amount of content in the content div. Even if there is only a small amount of text, the scroll bar still shows up.
My goal is for the scrollbar to only appear when the content within the content div exceeds the space available on the webpage.
You can see a demo of this issue here:
1) Website with minimal content:
2) Website with extensive content:
Example 1 shows the incorrect behavior as I do not want the scrollbar due to the limited text content. Instead, I want the content div to reach the bottom of the webpage. Example 2 demonstrates the correct behavior where the scrollbar appears because the text content is longer.