I have this DIV
<div style="width:500px;"> </div>
I’ve inserted a table inside it
<table style="width:100%;">
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
If <td></td> contained normal words, even if 100 words with spaces between them, then table will maintain its size inside the div, but if a cell contained 1 word with like 100 letters, then the table will take a bigger size outside its parent div, overflow:hidden; is good to hide the table’s enlargement, but I want the size to stay the same, and the cell to grow in height, like it usually do with normal words.
word-wrapis an older IE specific CSS rule. To get word wrapping in modern browsers, usewhite-space. Also, settingmax-widthseems to help get things working.jsFiddle DEMO