Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleThe Solution

The solution is quite simple. Use the property Table Render Mode of the Display Table Macro to specify the Cascading Style Sheets (CSS) class to use and list the widths of the columns.

Code Block
languagetext
table=projectdoc-alternating[columns=220px,*,220px]


Version Box
since5

Since version 5 of the projectdoc Toolbox besides commas also semicolons are allowed to separate the column width.

Code Block
languagetext
table=projectdoc-alternating[columns=220px;*;220px]


For this example we also choose the CSS class projectdoc-alternating to render the background of odd and even table rows differently.

The result is like this:

The option for specifying the width of the columns explicitly is a quick way to get the desired results for a single page. If you need to control tables on multiple pages you should consider to define a CSS class for these kind of tables.

...

Section
titleReferences


Section
titleResources


Piwik Set Multiple Custom Variables


NameValue
Departmentprojectdoc
Categoryprojectdoc-tip
Typehowto