Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Large text block

0 views
Skip to first unread message

Todd Gray

unread,
Jun 26, 2003, 5:45:52 PM6/26/03
to
I'm trying to manage a table where one column contains a
long description. The desire is to avoid wrapping text,
but to make use of as much column space as possible.

The following html works great (by itself):

<span style="OVERFLOW: hidden; text-overflow: ellipsis;
WIDTH: 100%;"><nobr>Some really huge line of text that
would surely wrap within a limited table cell
space.</nobr></span>

My table has columns which have specific widths except one
which has a width of 100%. Something like:

<table border=0>
<tr><td width=100>xxx</td><td width=100%>Some
really...</td></tr>
</table>

This also works great, except the text wraps. So, I tried
putting the two solutions together like:

<table border=0>
<tr><td width=100>xxx</td><td width=100%><span
style="OVERFLOW: hidden; text-overflow: ellipsis; WIDTH:
100%;"><nobr>Some really huge line of text that would
surely wrap within a limited table cell
space.</nobr></span></td></tr>
</table>

The second table cell stops scaling with the page.
Instead, it always takes on the maximum width of the
text. Even if I change the <span> to have a small width
like 150, the table cell still keeps the same width (the
maximum width of the text). I tried getting rid of the
<span> and putting the style information on the <td>, but
still no luck.

Has anyone done this successfully? Is there a better way
to go? Thanks!

Todd Gray

0 new messages