Jump to content

User:Crandmck/TableWithScrollBody

From Wikipedia, the free encyclopedia

Description

[edit]

Use this template to create a table that has a fixed heading row but a scrolling body. This is useful for long tables where the column headings would otherwise scroll up off the screen.

Parameters

[edit]
  • width: the table width in pixels. Optional; default is 800px. Specify a number; do not include "px." Currently does not support percent values.
  • height: the table body height in pixels. Specify a number; do not include "px." Optional; default is 600px.
  • class: CSS class(es) to apply to the table body. Optional.
  • style: Additional CSS style(s) to apply to the table body. Optional.
  • 1: Text of first column heading. Required (though can be blank), since the table must have at least one column.
  • 2 - 20: Text of second up to twentieth column headings. All are optional.

Currently, this template has a maximum of twenty columns. It will not work for tables with more columns.

Example

[edit]
Heading One Heading TwoHeading Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three


Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three
Content One Content Two Content Three