<td nowrap>
Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Attribute of
- Dealing With Td Layout Issues In HTML5 - Quick Tutorial
- What does
<td nowrap>
do? - NOWRAP indicates that text should not wrap in the cell.
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> |
|
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> |
|
Parent:
<TD …>