<table style="text-align: left;width: 100%; float:left" cellpadding="0" cellspacing="1" border="1">
<tr>
<th style="width:25%">head</th>
<th style="width:25%">head</th>
<th style="width:25%">head</th>
<th style="width:25%">head</th>
</tr>
</table>
<div style="height:100px; overflow-y:scroll; width:100%; float:left;">
<table style="text-align: left;width: 100%; float:left" cellpadding="0" cellspacing="1" border="1">
<tbody>
<tr>
<td style="width:25%">row</td>
<td style="width:25%">row</td>
<td style="width:25%">row</td>
<td style="width:25%">row</td>
</tr>
<tr>
<td>row</td>
<td>row</td>
<td>row</td>
<td>row</td>
</tr>
<tr>
<td>row</td>
<td>row</td>
<td>row</td>
<td>row</td>
</tr>
<tr>
<td>row</td>
<td>row</td>
<td>row</td>
<td>row</td>
</tr>
<tr>
<td>row</td>
<td>row</td>
<td>row</td>
<td>row</td>
</tr>
<tr>
<td>row</td>
<td>row</td>
<td>row</td>
<td>row</td>
</tr>
<tr>
<td>row</td>
<td>row</td>
<td>row</td>
<td>row</td>
</tr>
<tr>
<td>row</td>
<td>row</td>
<td>row</td>
<td>row</td>
</tr>
</tbody>
</table>
</div>
In the above code i got 2 html tables
Table 1: For header
Table 2: For Body
For Table 2 i kept a div for scrolling,this is my requirement.
when this div is there alignment issues are coming,if i remove the div then both tables alignment is perfect
Can you please help me in fixing this.