problem with the cell of the table


G

Garg

hi,

I am having a table and i want that each cell should not change the
width and accommodate max num of char. like text-overflow : ellipsis;
overflow : hidden do for a div tag but this didn't work for td tag and
i can't put div in each cell. so is there any substitute for the 'text-
overflow : ellipsis' for td

Thanks
Garg
 
Ad

Advertisements

N

Nag

Hello,

I agree with Greg. This question is nothing to do with this
Group. You can using the following example and try to resolve your
problem.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<style>
nobr
{
overflow: hidden;
text-overflow: ellipsis;
}
Table
{
table-layout: fixed;
border-collapse: collapse;
}
TD
{
overflow: hidden;
text-overflow: ellipsis;
}
</style>
</HEAD>

<BODY>
<TABLE border=1 cellpading=0 cellspacing=0 width=25%>
<TR>
<TD><nobr title='This is for testing'>CELL 1: This is for
testing<nobr></TD>
<TD><nobr title='CELL 2: This is for testing'>CELL 2: This is for
testing<nobr></TD>
<TD><nobr title='CELL 3: This is for testing'>CELL 3: This is for
testing<nobr></TD>
</TR>

</TABLE>
</BODY>
</HTML>
 
Ad

Advertisements

T

Thomas 'PointedEars' Lahn

Garg said:
I believe that both are closely bound so if any group member knows the
solution then he can help me out.

There are no members here. Usenet is organized into groups about topics,
not into groups of people. Now go away, please.


PointedEars
 

Top