Controlling Line Breaks in a CellUnless you specify otherwise, a browser will divide the lines of text in a cell as it decides on the height and width of each column and row. The nowrap attribute forces the browser to keep all the text in a cell on one line. Figure 16.65. If one of your cells has a two word entry just a little bit bigger than the others, you may want to avoid the text wrap so the numerical data looks more uniform.
To keep text in a cell on one single line: In a td or th cell, type nowrap= "nowrap". Figure 16.66. Just add the nowrap attribute to the TD cell that should not be broken into multiple lines.
Figure 16.67. No matter how narrow the window and the table get, the cell's contents will stay on a single line, even if it means some of the table extends beyond the window.
Tips
|