I\'ve been using word-wrap: break-word
to wrap text in div
s and span
s. However, it doesn\'t seem to work in table cells. I have a tabl
Tested in IE 8 and Chrome 13.
longtexthere
Foo
This causes the table to fit the width of the page and each column to take up 50% of the width.
If you prefer the first column to take up more of the page, add a width: 80%
to the td
as in the following example, replacing 80% with the percentage of your choice.
longtexthere
Foo