Set max-height to fill all the available space
问题 My web application has some areas placed in the page. Basically: <body> <nav> <-- top nav bar <ol> <-- breadcrumb <div> <-- row with buttons <div class="overflow-auto"> <table> <-- run-time growing table </div> <footer> <-- sticky footer </body> At run-time my scripts add rows to the table. To get the overflow-auto class working I have to set a max-height value. If I set it to 100% it just grows like without overflow. It works if I set a px value only. My goal, instead, is to fill all the