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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table Width

Status
Not open for further replies.

susan17

Programmer
Nov 6, 2001
12
0
0
SG
I have problems with table width, that automatically expands itself.

Even when I have specified the width of the cell, however when the cell's data is a long string without any whitespace, then.. the width of the cell, hence the width of the table expands automatically.

Here is the code:
<html>
<TABLE width=&quot;20&quot; border=&quot;1&quot;>
<THEAD>
<TR>
<TD width='10'>thisisbyright10pixelsonlyandcannotexpand</td>
<TD width='10'>thisisbyright10pixelsonlyandcannotexpand</td>
</tr>
</TABLE>
</html>

Anyone knows how to force the cell size fixed?
Thanks.
 
Think logically. You give a browser instruction that it can't do.
The only way to break a string is to insert at least one whitespace. That's the browser's nature...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top