Issue with HTML table format
I am working on a a html form which is used by a third party tool which takes HTML format to generate the output form.
Here is the html output:
The issue which I am facing is when I trying to separate below marked table to a new table I am loosing the format. Can anyone please guide me how to maintain the same format when I remove the below mentioned table to a new table.
Here is my HTML code:
<table cellpadding="1" cellspacing="1" style="width: 100%; border-collapse: collapse; border: solid;">
<tbody>
<tr>
<td rowspan="4" style="width: 289.333px; text-align: center; border: solid;"><span style="font-family: Calibri, sans-serif; font-size: 11px;">section 1</span></td>
<td rowspan="4" style="width: 70px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">section 2</span></span></td>
<td rowspan="4" style="width: 289.333px; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">section 3</span></span></td>
<td rowspan="4" style="width: 7px; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">4</span></span></td>
<td colspan="7" style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">(4)<br> DAY AND DATE</span></span></td>
<td rowspan="4" style="width: 70px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">(5)<br> section</span></span></td>
<td rowspan="4" style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">(6)<br> section</span></span></td>
<td rowspan="4" style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">(7)<br> section</span></span></td>
<td colspan="4" rowspan="3" style="text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">(8)<br> DEDUCTIONS</span></span></td>
<td colspan="3" rowspan="4" style="text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">(9)<br>section<br></span></span></td>
</tr>
<tr>
<td style="width: 1.5%; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> Sun</span></span></td>
<td style="width: 1.5%; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> Mon</span></span></td>
<td style="width: 1.5%; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> Tue</span></span></td>
<td style="width: 1.5%; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> Wed</span></span></td>
<td style="width: 1.5%; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> Thur</span></span></td>
<td style="width: 1.5%; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> Fri</span></span></td>
<td style="width: 1.5%; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> Sat</span></span></td>
</tr>
<tr>
<td style="width: 1.5%; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 1.5%; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 1.5%; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 1.5%; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 1.5%; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 1.5%; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 1.5%; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
</tr>
<tr>
<td colspan="7" style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"><br></span></span></td>
<td style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">Tot</span></span></td>
<td style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">Tot<br></span></span></td>
<td style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">Tot<br></span></span></td>
<td style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;">Tot</span></span></td>
</tr>
<tr>
<td colspan="21" style="width: 289.333px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
</tr>
<tr>
<td rowspan="2" style="width: 289.333px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"><br></span></span></td>
<td rowspan="2" style="width: 70px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 289.333px; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 7px; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 70px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td colspan="3" rowspan="4" style="text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
</tr>
<tr>
<td style="width: 7px; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 70px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
</tr>
</tbody>
</table>
<p><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></p>
<table>
<tbody>
<tr>
<td rowspan="2" style="width: 289.333px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"><br></span></span></td>
<td rowspan="2" style="width: 70px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 289.333px; border: solid; text-align: center;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 7px; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 70px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td rowspan="2" style="width: 3.7763%; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td colspan="3" rowspan="4" style="text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
</tr>
<tr>
<td style="width: 7px; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 269px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 70px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 150px; text-align: center; border: solid;"><span style="font-size: 11px;"><span style="font-family: Calibri, sans-serif;"> </span></span></td>
<td style="width: 150px; text-align: center; border: solid;"><span style="font-family: Calibri, sans-serif; font-size: 11px;"> </span></td>
</tr>
</tbody>
</table>