Jump to content

cell size and limited text?


chiprivers

Recommended Posts

On a page indexing search results, I want to display a list of titles, underneath which I will give the first part of a related string of text.  The amount of the text displayed should fill the display area (namely the table cell that it is in), much like you get on many search engines.

 

Like this:

 

Title Here

Truncated string of text here until end of cell area with three dots at end if shortened...

 

This would be simple to calculate if the cell was of a fixed size but I want the size of the cell to vary depending on the size of the browser display area.  Has anybody dealt with this issue before or can anybody suggest a way to do it. 

Link to comment
https://forums.phpfreaks.com/topic/59460-cell-size-and-limited-text/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.