I am currently working on a full screen web app. I have applied CSS 100% height to the HTML
, body
, and parent elements. Within the app, there is a contents table that dynamically grows as items are added to it. My goal is to have a vertical scrollbar automatically appear when there is not enough space to display all content.
I have experimented with various combinations of overflow-y:auto;
and overflow:auto;
on the tbody
, table
, and the enclosing div
(which also has 100% height). However, none of these solutions seem to be effective in achieving the desired result. I am wondering if it is even possible to make this work with elements set to 100% height. Do CSS overflows necessitate a fixed height?
Edit
Below is some code snippet related to my issue. The table within the left column is where I would like to implement a vertical scrollbar when the content exceeds the available space.