My challenge involves a container grid with 3 div flex subelements. The first is the fixed header, the second is the body, and the third is the fixed footer. Within the body, there is a table. What I want to achieve is that when I resize the window, the table inside the "body" section remains within the section by applying overflow-y of the tbody so that the table never stretches the section containing it. Do you have any ideas on how to accomplish this?
In the initial image, the table is housed in the yellow body with tbody.height=600px. The height of the yellow body is 660px. When I resize the window, the scenario looks like the second image. A scrollbar appears in the window because the height of the table exceeds the height of the yellow section, causing the footer (orange) to disappear. My goal is for the window's scrollbar not to appear upon resizing, but instead, for the table's height to be reduced, displaying only the table's scrollbar as shown in the third image. https://i.sstatic.net/qeak4.jpg https://i.sstatic.net/AO51o.jpg https://i.sstatic.net/seDVe.jpg