Wrap text in <td> tag
css, html, html-table, word-wrap
Solution
To Wrap TD text
First set table style
table{
table-layout: fixed;
}
then set TD Style
td{
word-wrap:break-word
}
Problem
I want to wrap some text that is added to a `<td>` element. I have tried with `style="word-wrap: break-word;" width="15%"`. But it is not wrapping the text. Is it mandatory to give it 100% width? I have other controls to display so only 15% width is available.