I have a word that does not contain blank spaces and I want to break it when it reaches the width of its <th>
, I've been testing with different answers that I found in stack but I have not succeeded.
.romperpalabra{
display:inline-block;
word-wrap:break-word;
}
<table>
<thead>
<tr>
<th class="column1">COLUMN1</th>
<th class="column2">COLUMN2</th>
<th class="column3">COLUMN3</th>
</tr>
</thead>
<tbody>
<tr>
<td>hola1</td>
<td class="romperpalabra">holaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa2</td>
<td>hola3</td>
</tr>
</tbody>
</table>