Why not set the table height using percentages in the viewport ?
table{ height:100vh; }
The percentage of length in the context of viewing determines the length relative to the size of the viewport, that is, the visible part of the document.
Alternatively, from the provided code, the table height is not set, so you can add height:100% (as well as in body ) if you don't like using vh .
Again, without seeing more code, it is difficult to provide a more individual solution, you will need to take a different approach:
body{ height:100%; position:relative; } table{ position:absolute; top:0; bottom:0; }
Assuming the table is a direct child of the body
source share