View Single Post
Old 06-03-2014, 06:14 PM   #16
weberr
New old guy
weberr began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Feb 2012
Device: kindle fire
Yes, thank you for the tutorial article. It is excellent, but of limited value as they only use examples using short text strings/values which works fine for short string data -- but falls apart when using long-strings. I need a way for the columns to adjust to fixed equal widths and for the text to wrap-around within that fixed width, no matter how long that may make that particular. Also, vertical-align:top, the other columns also stay fixed.

I know this has been addressed in many forums, including this one, but none of the tutorials or examples address all aspects.

I am in the epub environment. I want a table that will adjust dependent on the ebook reader/user's choice re font size or table width. But the kicker is that the first column will hold fixed length, short reference numbers, while the remaining columns will contain long text strings (paragraphs) but adjust to equal widths -- such as column 1 set at 10% and the remaining columns setting themselves to equal widths dependent on how many columns, but all add up to 100%.

Everything I have seen address the objective with a relatively non-complex code, but all assume - and the solution only works if the data going into the remaining columns is no more than the algorithm-determined width. But all fall apart if the data going into those columns is longer than the column width whereas I want an unknown amount of text (paragraphs) going into those columns. Every approach I have tried -- table-layout or not, percentages or pixels, css or html or both -- fails.

Hope someone has figured out how to this -- have a solution that works with long, wrap-around text?
weberr is offline   Reply With Quote