Idocs Guide to HTML

Attribute for <TD ...>
NOWRAP

NOWRAP indicates that text should not wrap in the cell. NOWRAP serves much the same purpose as the <NOBR> tag. For example, the following cell will not wrap not matter how long the text.

this code produces this
<TABLE BORDER=1 CELLPADDING=3>
<TR>

<TD NOWRAP>This is a really long sentence, but I would prefer it not wrap at all any time.</TD>

</TR>
</TABLE>
This is a really long sentence, but I would prefer it not wrap at all any time.

Lines can still be broken explicitly with <BR ...>, <P ...>, and other block level tags.

this code produces this
<TABLE BORDER=1 CELLPADDING=3>

<TR>
<TD>Favorite closing lines:</TD>
<TD NOWRAP>Do not go gentle into that good night<BR>
Rage, rage against the dying of the light.<P>
<I>Dylan Thomas</I>
</TD>

</TR>
</TABLE>
Favorite closing lines: Do not go gentle into that good night
Rage, rage against the dying of the light.

Dylan Thomas

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.