On 2007-01-24, JD <jo**********@gmail.comwrote:
Hi,
I am preparing a report in HTML. I used fixed length cells by
specifying the width attribute in <td>. However for some text, the
cells doesn't stick to the size specified. The expected effect should
be that the text should wrap to the next line, but it doesn't. Can
anybody help me to get around with this problem?
A cell will never be narrower than the width of the longest unbreakable
sequence of characters in it.
You could experiment with table-layout: fixed, or put divs inside the
cells and set widths on the divs. Use the overflow property to specify
how you want long unbreakable sequences to overflow the divs. You can't
force word breaks other than at proper word-breaking points unless you
use IE-proprietary extensions.