|
I have a table with 6 columns
-------------------------------------------------------------
| Line | One | Two | Three | Four | Five |
-------------------------------------------------------------
| 1 | a | Two | Three | Four | Five |
-------------------------------------------------------------
| 2 | b | Two | Three | Four | Five |
-------------------------------------------------------------
| 3 | VeryLongString | Two | Three | Four | Five |
-------------------------------------------------------------
| 4 | d | Two | Three | Four | Five |
-------------------------------------------------------------
Each column has a class name. Eg ( class="col_one").
When the table is created, I can determine the length of each string.
(1,1,14,1)
Because, most of the data in that column is length (1) I would like to force a width on that particular column.
Sure the (VeryLongSting) will become (V) but I will include a button to expand the column if a user is interested in row (3).
Summary---
I'm trying to save the space and not have information pushed over to the
right due to a single long string.
How can I force a smaller <td> width.
Any other suggestion, or approaches are welcome.
|