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

No Wrapping, Fixed Size in a TD

0 views
Skip to first unread message

Scott McNair

unread,
Jan 24, 2004, 9:58:56 PM1/24/04
to
Hi,

I need to make a TD cell adhere to specific dimensions, which works great
until it gets populated with text longer than the width of the cell. I need
to set it so that any overflowing text is truncated, rather than wrapped to
another line. I know there's a way to do this, but I can't find that info
anywhere now that I actually need to do it.

Thanks,
Scott

José Jeria

unread,
Jan 25, 2004, 2:15:39 PM1/25/04
to
<table width="30" style="table-layout:fixed;">
<tr>
<td style="overflow:hidden;">dfdasfadsfdasfasdfasf<br>dddd</td>
</tr>
</table>

/José Jeria

José Jeria

unread,
Jan 25, 2004, 2:19:07 PM1/25/04
to
And to make the text not to wrap, add
white-space:nowrap;

/José

Scott McNair

unread,
Jan 25, 2004, 2:37:09 PM1/25/04
to
José Jeria <jj...@hotmail.com> wrote in news:uclcge34DHA.2648
@tk2msftngp13.phx.gbl:

> <table width="30" style="table-layout:fixed;">
> <tr>
> <td style="overflow:hidden;">dfdasfadsfdasfasdfasf<br>dddd</td>
> </tr>
> </table>

Perfect! Thank you.

0 new messages