Word-wrap in an HTML table
The following works for me in Internet Explorer. Note the addition of the table-layout:fixed
CSS attribute
td {
border: 1px solid;
}
<table style="table-layout: fixed; width: 100%">
<tr>
<td style="word-wrap: break-word">
LongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongLongWord
</td>
</tr>
</table>
<td style="word-break:break-all;">longtextwithoutspace</td>
or
<span style="word-break:break-all;">longtextwithoutspace</span>
A long shot, but double-check with Firebug (or similar) that you aren't accidentally inheriting the following rule:
white-space:nowrap;
This may override your specified line break behaviour.