Software Programming posted on January 13, 2010 10:45

Line wrapping can be controlled in table cells on the td tag using the wrap attribute.
<td wrap="nowrap">
This has been deprecated, so you should not use it. Another problem is there is no other value, so in a nested table you cannot turn wrapping on using the wrap attribute.
The way to set wrapping is to use the css white-space property, with the value nowrap or normal. See the css documentation for other values.
<td style="white-space:nowrap">
<td style="white-space:normal">
You can override prior settings with later settings. If you turn nowrap on, you can turn nowrap off with the "normal" value.
By Andrew Weitzen, Bronze Inc. (c) 2010
Bronze is the publisher of several online Internet journals including: InternetHandholding.com, DomainNames.gs, DotNetNuke.bz, Programmer.bz, Software.vg, WebHosting.vg