I have a table inside a div. the table extends beyond the right edge of the screen because of long text. Is it possible to wrap the cells(td) to fit in the specified div width?
td{
white-space:nowrap;
}
<div>
<table border="1" style='border:1px dotted black'>
<tr>
<td>cell-cell cell cell cell</td>
<td>cell-cell cell cell cell</td>
<td>cell-cell cell cell cell</td>
<td>cell-cell cell cell cell</td>
<td>cell-cell cell cell cell</td>
<td>cell-cell cell cell cell</td>
<td>cell-cell cell cell cell</td>
<td>cell-cell cell cell cell</td>
</tr>
</table>
</div>
TIA
Nagendra Oleti