wac
11-04-2003, 09:59 PM
Is there anyway to clip text to a specified width?
What I'm looking for is a way to take long text that doesn't wrap in a table (text without spaces, like email address) and have the table clip it to show only what will fit in the cell.
I was thinking of having a DIV in the cell like so...
<TD width="30%" >
<DIV style="overflow:hidden">blah blah some long text</DIV>
</TD>
This seems kinda nasty to have in all the table cells, so I'm wondering if someone has a better idea
What I'm looking for is a way to take long text that doesn't wrap in a table (text without spaces, like email address) and have the table clip it to show only what will fit in the cell.
I was thinking of having a DIV in the cell like so...
<TD width="30%" >
<DIV style="overflow:hidden">blah blah some long text</DIV>
</TD>
This seems kinda nasty to have in all the table cells, so I'm wondering if someone has a better idea