SID-00741: set column width for a table
| Status: |
Answered |
TWiki version: |
|
Perl version: |
|
| Category: |
TablePlugin |
Server OS: |
|
Last update: |
15 years ago |
I am trying to set columns to set width using columnwidths but it is not working for me. Probably my syntax is wrong because I am a Twiki newbie.
%TABLE{ columnwidths="20px, 40px, 20px, 20px" }%
There are for columns in my tables, the content in the 2nd column is too wide so I would like to constraint it to only certain width, say, 40px, anything over 40px will be break into next line.
Thanks,
Shawn
--
ShawnZhou - 2010-02-06
Discussion and Answer
Behold:
--
SeanCMorgan - 2010-02-08
You might need to enclose the TWiki table in a div or HTML table to limit its max width so that text in columns wrap at the desired width. Not sure if it is possible to force a wrap in a table cell for a veryveryveryveryveryveryveryveryveryverylongword though.
--
PeterThoeny - 2010-02-08
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.