Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

preventing text to split in different lines

Status
Not open for further replies.

davikokar

Technical User
May 13, 2004
523
IT
Hallo,
I have a table inside another table cell. In the nested table there are two cells. One is containing a text of more than one word and the other cell width is set up to 100%. The problem is that the text in the first cell is splitted in two lines. In other words I want that one cell width is long as the text is containing and the other cell occupies the rest of the space.

thanks for suggestions
 
Use <td nowrap> or <td style="white-space: nowrap;"> for first cell, and set width for another large enough (say, 90%).
 
Try setting the nowrap parameter to your cell, where you don't want the text to be in two (or more) lines:
Code:
<td nowrap>Text text</td><td width="100%">The Rest</td>
or if you want a css solution:
Code:
<td style="white-space: nowrap;">Text text</td><td width="100%">The Rest</td>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top