Learn HTML Code Tutorial Reference Guide

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




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial