HighDots Forums  

Hiding part of the content inside a <TD>

alt.html.tags alt.html.tags


Discuss Hiding part of the content inside a <TD> in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jonathan Taub
 
Posts: n/a

Default Hiding part of the content inside a <TD> - 01-06-2004 , 02:21 AM






Sometimes, a table cell (<TD>) displays quite a lot of information.
Is there a property or style indicating that is should display only
part of the information?

As an example, suppose that a table cell contains about 20 rows.
I wish to display only three with three dots afterwards meaning there
is more info. Offcouse this can be done using DHTML or on the server
side, but I'd rather be using an already easy built in way to do this
if such a way exists.

Reply With Quote
  #2  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Hiding part of the content inside a <TD> - 01-06-2004 , 01:43 PM






jonathantaub (AT) hotmail (DOT) com (Jonathan Taub) wrote:

Quote:
Sometimes, a table cell (<TD>) displays quite a lot of information.
Is there a property or style indicating that is should display only
part of the information?
If there is, then it's not an HTML issue but about CSS.

Quote:
As an example, suppose that a table cell contains about 20 rows.
Huh? Lines of text I presume.

Quote:
I wish to display only three with three dots afterwards meaning there
is more info.
You can use CSS for truncating the visible text but not for adding the
three dots.

Quote:
Offcouse this can be done using DHTML
Of course DHTML works sometimes only.

Quote:
or on the server side,
There you have it. Make the server generate the page so that the data
is shortened as appropriate. That way you have chances of programming
the operation so that the truncation is _meaningful_ (at least
truncating between words only, not inside a word, and perhaps
truncating after punctuation characters primarily(.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html




Reply With Quote
  #3  
Old   
Jonathan Taub
 
Posts: n/a

Default Re: Hiding part of the content inside a <TD> - 01-08-2004 , 09:17 AM



Quote:
There you have it. Make the server generate the page so that the data
is shortened as appropriate. That way you have chances of programming
the operation so that the truncation is _meaningful_ (at least
truncating between words only, not inside a word, and perhaps
truncating after punctuation characters primarily(.
That is what I did.
I just hoped there may be already something like that built into IE.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.