I am facing an issue with a div and table on my webpage:
<div id="tablediv">
<table id="table">
<tr><th>headers</th></tr>
<tr><td>contents</td></tr>
</table>
<div>
Along with the following CSS:
#tablediv {
overflow-x: auto;
overflow-y: auto;
max-height: calc(100vh - 50px);
}
The problem I am encountering is that even though the div appropriately scrolls to show the entire height of the table, when in print view mode, it only shows what fits on one page and does not continue to other pages for the remaining rows of the div/table.
I am looking for a solution using @media print
CSS to address this issue. How can this be achieved?