You are here:   Home > CSS - cascading style sheets
Register   |  Login

Programmer Newsletter

Minimize

Master Programmer

Minimize

Find articles on computer software, programming, ASP.net, Sql server, databases, C#, websites, Internet, Windows, Outlook macros.

Programming Articles

Minimize
13

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

Post Rating

Comments

Internet Handholding
# Internet Handholding
Sunday, June 06, 2010 11:12 AM
You probably did not specify the DOCTYPE. See

http://www.programmer.bz/Articles/tabid/159/asp_net_sql/152/How-to-Fix-Problems-with-Internet-Explorer-that-do-not-happen-in-other-browsers.aspx

Post Comment

Name (required)

Email (required)

Website

Programmer Newsletter

Minimize

Subscribe to the Internet Handholding newsletter



Reccomend Programmer.bz

Minimize

Share/Bookmark Bookmark and Share