I have a cgi (in Perl) that creates a table. If the data in one of the columns is longer than the column width, I want it to only display what will fit on a single line in the column. i.e.
<td width="50>This is a test this is a test this is a test</td>
In this example, I only want the first portion of the line that fully fits, to be displayed.
I've tried truncated the line in the cgi BEFORE it is output into the HTML, but this doesn't take into account proportionally spaced fonts (50 i's need less space that 50 w's).
I've tried nowrap="nowrap", but this just increased the column width to accomodate the full line.
-with thanks
<td width="50>This is a test this is a test this is a test</td>
In this example, I only want the first portion of the line that fully fits, to be displayed.
I've tried truncated the line in the cgi BEFORE it is output into the HTML, but this doesn't take into account proportionally spaced fonts (50 i's need less space that 50 w's).
I've tried nowrap="nowrap", but this just increased the column width to accomodate the full line.
-with thanks