Why NOWRAP doesn work in <TD>?
<HTML>
<body>
<table width="400px" border="10">
<TR height=100%>
<TD style="width: 50%;" nowrap="false">
A.very long string.......Z
</TD>
<TD style="width: 50%;" nowrap="false">
A.very long string.......Z
</TD>
</TR>
</table>
</body>
</HTML>
Why do <TD> become huge in size instead of 50% of 400px = 200px?
# 1 Re: Why NOWRAP doesn work in <TD>?
Because there is nothing like nowrap="false" !!
<TD style="width: 50%;" nowrap="false">
"nowrap comes without any attribute value."
if u do not specify the 'nowrap' the cell wrap the content, and if u write 'nowrap' with a cell it does not wrap the text.
hope it helps
# 2 Re: Why NOWRAP doesn work in <TD>?
Originally posted by anupam kant
Because there is nothing like nowrap="false" !!
<TD style="width: 50%;" nowrap="false">
"nowrap comes without any attribute value."
if u do not specify the 'nowrap' the cell wrap the content, and if u write 'nowrap' with a cell it does not wrap the text.
hope it helps
But MSDN has opposite opinion
ms-help://MS.MSDNQTR.2004JAN.1033/DHTML/workshop/author/dhtml/reference/properties/nowrap.htm
nowrap has value according to it