I have a large table with multiple rows. Due to its length, I have provided a link to the jsfiddle where you can view it: jsfiddle. The table is structured in HTML and contains many rows with various attributes.
<table>
<thead>text here!</thead>
<tbody>
Inside this are td elements with numerous tr structures, rowspan, and colspan
</tbody>
My goals are:
- Ensure that the Thead always appears at the top of the printed page
- Automatically initiate a page break for the first tr (MODEL as the starting td)
I have managed to find a solution for the first issue, but it seems messy as some td elements overlap on subsequent pages and get inside the Thead section. I am confused by this...
https://i.stack.imgur.com/inywN.png
If possible, I would like to know if there is a solution for automatic page breaks. I have searched for answers, but most require manually determining which tr should begin on a new page. Is there a way to automatically implement page breaks at the beginning tr of MODEL?
Thank you for your help. I understand that my question may seem basic, but I am truly stuck here.