I am currently building a website using Bootstrap 4 that includes two components (labeled as 2 and 3 in the diagram) that need to fill up all available space on the page. I have come across numerous similar questions online with different solutions. After researching, I chose the best solution and implemented it in my project. Here is what I attempted: https://www.codeply.com/p/sEHcVsMlML
Although the surrounding divs in the provided Codeply example fill up the remaining space, the nested divs which are supposed to fill the space do not. These nested divs have the same classes, so it is unclear to me why they are not behaving as expected.
The concept I am aiming for is illustrated below: https://i.sstatic.net/Lm0Kp.png
The goal is for sections 1, 2, and 3 to occupy the remaining height of the page.