I have table inside div , thing is if I change window size, table is coming out of div. please help me. Thanks in advance. Below is my code

```
<div style="height:auto">
 <table  width="100%" style="width: 100%;">
<thead>
  <tr >
    <th  width="16.5%">sunday</th>
    <th width="16.5%">monday</th>
    <th width="16.5%">tuesday</th>
    <th width="16.5%">wed</th>
    <th width="16.5%">thu</th>
    <th width="16.5%">fri</th>
  </tr>
</thead>
<tbody>
  <tr  >
    <td>111</td>
    <td ><input value="" type="" name="" /></td>
    <td ><input value="" type="" name="" /></td>
    <td ><input value="" type="" name="" /></td>
    <td ><input value="" type="" name="" /></td>
    <td ><input value="" type="" name="" /></td>
  </tr>
</tbody>
</table>
     </div>

```