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
 
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>
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top