Tags:
create new tag
view all tags

SID-00741: set column width for a table

Status: Answered 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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title set column width for a table
SupportCategory TablePlugin
TWiki version

Server OS

Web server

Perl version

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2010-02-08 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.